Skip to content

Commit e6e25e6

Browse files
committed
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
1 parent 0c99666 commit e6e25e6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/features/background-agent/manager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ export class BackgroundManager {
152152
system: input.skillContent,
153153
tools: {
154154
task: false,
155+
sisyphus_task: false,
156+
call_omo_agent: true,
155157
},
156158
parts: [{ type: "text", text: input.prompt }],
157159
},
@@ -312,6 +314,8 @@ export class BackgroundManager {
312314
agent: existingTask.agent,
313315
tools: {
314316
task: false,
317+
sisyphus_task: false,
318+
call_omo_agent: true,
315319
},
316320
parts: [{ type: "text", text: input.prompt }],
317321
},

src/tools/sisyphus-task/tools.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ Use \`background_output\` with task_id="${task.id}" to check progress.`
223223
tools: {
224224
task: false,
225225
sisyphus_task: false,
226+
call_omo_agent: true,
226227
},
227228
parts: [{ type: "text", text: args.prompt }],
228229
},
@@ -446,6 +447,7 @@ System notifies on completion. Use \`background_output\` with task_id="${task.id
446447
tools: {
447448
task: false,
448449
sisyphus_task: false,
450+
call_omo_agent: true,
449451
},
450452
parts: [{ type: "text", text: args.prompt }],
451453
...(categoryModel ? { model: categoryModel } : {}),

0 commit comments

Comments
 (0)