feat(agents): enable question tool permission for Sisyphus agents
Allow Sisyphus and orchestrator-sisyphus agents to use OpenCode's question tool for interactive user prompts. OpenCode defaults question permission to "deny" for all agents except build/plan.
This commit is contained in:
@@ -1441,6 +1441,7 @@ export function createOrchestratorSisyphusAgent(ctx?: OrchestratorContext): Agen
|
||||
"task",
|
||||
"call_omo_agent",
|
||||
])
|
||||
const questionPermission = { question: "allow" } as AgentConfig["permission"]
|
||||
|
||||
return {
|
||||
description:
|
||||
@@ -1450,7 +1451,7 @@ export function createOrchestratorSisyphusAgent(ctx?: OrchestratorContext): Agen
|
||||
temperature: 0.1,
|
||||
prompt: buildDynamicOrchestratorPrompt(ctx),
|
||||
thinking: { type: "enabled", budgetTokens: 32000 },
|
||||
...restrictions,
|
||||
permission: { ...((restrictions as { permission?: Record<string, string> }).permission || {}), ...questionPermission },
|
||||
} as AgentConfig
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user