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:
parent
0c996669b0
commit
e6e25e6d93
@ -152,6 +152,8 @@ export class BackgroundManager {
|
|||||||
system: input.skillContent,
|
system: input.skillContent,
|
||||||
tools: {
|
tools: {
|
||||||
task: false,
|
task: false,
|
||||||
|
sisyphus_task: false,
|
||||||
|
call_omo_agent: true,
|
||||||
},
|
},
|
||||||
parts: [{ type: "text", text: input.prompt }],
|
parts: [{ type: "text", text: input.prompt }],
|
||||||
},
|
},
|
||||||
@ -312,6 +314,8 @@ export class BackgroundManager {
|
|||||||
agent: existingTask.agent,
|
agent: existingTask.agent,
|
||||||
tools: {
|
tools: {
|
||||||
task: false,
|
task: false,
|
||||||
|
sisyphus_task: false,
|
||||||
|
call_omo_agent: true,
|
||||||
},
|
},
|
||||||
parts: [{ type: "text", text: input.prompt }],
|
parts: [{ type: "text", text: input.prompt }],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -223,6 +223,7 @@ Use \`background_output\` with task_id="${task.id}" to check progress.`
|
|||||||
tools: {
|
tools: {
|
||||||
task: false,
|
task: false,
|
||||||
sisyphus_task: false,
|
sisyphus_task: false,
|
||||||
|
call_omo_agent: true,
|
||||||
},
|
},
|
||||||
parts: [{ type: "text", text: args.prompt }],
|
parts: [{ type: "text", text: args.prompt }],
|
||||||
},
|
},
|
||||||
@ -446,6 +447,7 @@ System notifies on completion. Use \`background_output\` with task_id="${task.id
|
|||||||
tools: {
|
tools: {
|
||||||
task: false,
|
task: false,
|
||||||
sisyphus_task: false,
|
sisyphus_task: false,
|
||||||
|
call_omo_agent: true,
|
||||||
},
|
},
|
||||||
parts: [{ type: "text", text: args.prompt }],
|
parts: [{ type: "text", text: args.prompt }],
|
||||||
...(categoryModel ? { model: categoryModel } : {}),
|
...(categoryModel ? { model: categoryModel } : {}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user