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
+4
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 }],
},