fix: address potential panic on initialization (#2092)
Easily reproducible for a new setup (onboarding).
commitb7e07a59275cb0e03e80813c44bd8eccb21de67c
authorAndrey Nering <andreynering@users.noreply.github.com>
dateMon 2 Feb 2026, 13:30 (9 months ago)
parent3cc4467
internal/app/lsp.go+4−2
@@ -76,8 +76,10 @@ func (app *App) initLSPClients(ctx context.Context) {
7676 }
7777 wg.Wait()
7878
79− if err := app.AgentCoordinator.UpdateModels(ctx); err != nil {
80− slog.Error("Failed to refresh tools after LSP startup", "error", err)
79+ if app.AgentCoordinator != nil {
80+ if err := app.AgentCoordinator.UpdateModels(ctx); err != nil {
81+ slog.Error("Failed to refresh tools after LSP startup", "error", err)
82+ }
8183 }
8284}
8385