cleanup app, config and root

This commit is contained in:
Kujtim Hoxha 2025-04-13 13:17:17 +02:00
commit 3ad983db0f
21 changed files with 514 additions and 281 deletions

View file

@ -40,12 +40,13 @@ func NewCoderAgent(app *app.App) (Agent, error) {
return nil, errors.New("model not supported")
}
agentProvider, titleGenerator, err := getAgentProviders(app.Context, model)
ctx := context.Background()
agentProvider, titleGenerator, err := getAgentProviders(ctx, model)
if err != nil {
return nil, err
}
otherTools := GetMcpTools(app.Context, app.Permissions)
otherTools := GetMcpTools(ctx, app.Permissions)
if len(app.LSPClients) > 0 {
otherTools = append(otherTools, tools.NewDiagnosticsTool(app.LSPClients))
}