on main help sign in
feat: if agent has been disabled do not set the agent fn
commit925e5faf85622f5a1ea5aeb6758f194ec8673a15 authortauraamui <adampstringer@protonmail.com> dateWed 24 Sep 2025, 12:03 (1 year ago) parenta6a4fa7
1 file changed+1−1
internal/llm/agent/agent.go+1−1
internal/llm/agent/agent.go+1−1
@@ -100,7 +100,7 @@ func NewAgent(
100100 cfg := config.Get()
101101
102102 var agentToolFn func() (tools.BaseTool, error)
103− if agentCfg.ID == "coder" {
103+ if agentCfg.ID == "coder" && slices.Contains(agentCfg.AllowedTools, AgentToolName) {
104104 agentToolFn = func() (tools.BaseTool, error) {
105105 taskAgentCfg := config.Get().Agents["task"]
106106 if taskAgentCfg.ID == "" {