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:
@@ -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 }],
|
||||
},
|
||||
|
||||
@@ -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 } : {}),
|
||||
|
||||
Reference in New Issue
Block a user