fix(agents): enable call_omo_agent for background agents while restricting recursive calls

- 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
This commit is contained in:
YeonGyu-Kim
2026-01-13 21:00:00 +09:00
parent 0c996669b0
commit e6e25e6d93
2 changed files with 6 additions and 0 deletions

View File

@@ -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 }],
},

View File

@@ -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 } : {}),