cleanup app, config and root

This commit is contained in:
Kujtim Hoxha
2025-04-13 13:17:17 +02:00
parent 5601466fe1
commit 3ad983db0f
21 changed files with 517 additions and 284 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))
}