on main help sign in
fix: address potential panic on initialization (#2092)
b7e07a5Andrey Nering
internal/app/lsp.go+4−2
@@ -76,8 +76,10 @@ func (app *App) initLSPClients(ctx context.Context) {
76 }
76 }
77 wg.Wait()
77 wg.Wait()
78
78
79+ if app.AgentCoordinator != nil {
79− if err := app.AgentCoordinator.UpdateModels(ctx); err != nil {
80+ if err := app.AgentCoordinator.UpdateModels(ctx); err != nil {
80− slog.Error("Failed to refresh tools after LSP startup", "error", err)
81+ slog.Error("Failed to refresh tools after LSP startup", "error", err)
82+ }
81 }
83 }
82}
84}
83
85