fix(delegate-task): reject primary agents in task subagent resolution

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-13 15:52:44 +09:00
parent f1cd4d73d6
commit 01a1b141e9
8 changed files with 224 additions and 115 deletions
+1 -1
View File
@@ -4178,7 +4178,7 @@ describe("sisyphus-task", () => {
)
//#then
expect(result).toContain('Unknown agent: "prometheus"')
expect(result).toContain('Cannot delegate to primary agent "prometheus" via task. Select that agent directly instead.')
}, { timeout: 20000 })
test("non-plan subagent should NOT have task permission", async () => {