From e6e25e6d936c62ef24b24641cc2990ea304d8e5a Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 13 Jan 2026 21:00:00 +0900 Subject: [PATCH] fix(agents): enable call_omo_agent for background agents while restricting recursive calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Enable call_omo_agent tool for skill execution in BackgroundManager - Enable call_omo_agent tool for agent execution in BackgroundManager - Enable call_omo_agent tool for sisyphus_task resume operations - Enable call_omo_agent tool for sisyphus_task category-based delegation - Restrict recursive task and sisyphus_task calls to prevent loops - Allows background agents to delegate to other agents cleanly 🤖 Generated with OhMyOpenCode assistance --- src/features/background-agent/manager.ts | 4 ++++ src/tools/sisyphus-task/tools.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/features/background-agent/manager.ts b/src/features/background-agent/manager.ts index e7b14f49..83d28fa2 100644 --- a/src/features/background-agent/manager.ts +++ b/src/features/background-agent/manager.ts @@ -152,6 +152,8 @@ export class BackgroundManager { system: input.skillContent, tools: { task: false, + sisyphus_task: false, + call_omo_agent: true, }, parts: [{ type: "text", text: input.prompt }], }, @@ -312,6 +314,8 @@ export class BackgroundManager { agent: existingTask.agent, tools: { task: false, + sisyphus_task: false, + call_omo_agent: true, }, parts: [{ type: "text", text: input.prompt }], }, diff --git a/src/tools/sisyphus-task/tools.ts b/src/tools/sisyphus-task/tools.ts index 060f0421..980744c5 100644 --- a/src/tools/sisyphus-task/tools.ts +++ b/src/tools/sisyphus-task/tools.ts @@ -223,6 +223,7 @@ Use \`background_output\` with task_id="${task.id}" to check progress.` tools: { task: false, sisyphus_task: false, + call_omo_agent: true, }, parts: [{ type: "text", text: args.prompt }], }, @@ -446,6 +447,7 @@ System notifies on completion. Use \`background_output\` with task_id="${task.id tools: { task: false, sisyphus_task: false, + call_omo_agent: true, }, parts: [{ type: "text", text: args.prompt }], ...(categoryModel ? { model: categoryModel } : {}),