summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/agent/coder.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/llm/agent/coder.go')
-rw-r--r--internal/llm/agent/coder.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/llm/agent/coder.go b/internal/llm/agent/coder.go
index 5deff05a8..f8e1c40a0 100644
--- a/internal/llm/agent/coder.go
+++ b/internal/llm/agent/coder.go
@@ -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))
}