diff --git a/src/agents/orchestrator-sisyphus.ts b/src/agents/orchestrator-sisyphus.ts index f0e8938e9..8c007e4f8 100644 --- a/src/agents/orchestrator-sisyphus.ts +++ b/src/agents/orchestrator-sisyphus.ts @@ -1441,8 +1441,6 @@ export function createOrchestratorSisyphusAgent(ctx?: OrchestratorContext): Agen "task", "call_omo_agent", ]) - const questionPermission = { question: "allow" } as AgentConfig["permission"] - return { description: "Orchestrates work via sisyphus_task() to complete ALL tasks in a todo list until fully done", @@ -1451,7 +1449,7 @@ export function createOrchestratorSisyphusAgent(ctx?: OrchestratorContext): Agen temperature: 0.1, prompt: buildDynamicOrchestratorPrompt(ctx), thinking: { type: "enabled", budgetTokens: 32000 }, - permission: { ...((restrictions as { permission?: Record }).permission || {}), ...questionPermission }, + ...restrictions, } as AgentConfig } diff --git a/src/agents/prometheus-prompt.ts b/src/agents/prometheus-prompt.ts index 4e6d88ca5..29202e884 100644 --- a/src/agents/prometheus-prompt.ts +++ b/src/agents/prometheus-prompt.ts @@ -980,9 +980,11 @@ This will: /** * Prometheus planner permission configuration. * Allows write/edit for plan files (.md only, enforced by prometheus-md-only hook). + * Question permission allows agent to ask user questions via OpenCode's QuestionTool. */ export const PROMETHEUS_PERMISSION = { edit: "allow" as const, bash: "allow" as const, webfetch: "allow" as const, + question: "allow" as const, }