refactor(config-handler): separate plan prompt into dedicated configuration (#1413)

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

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-02-03 12:11:49 +09:00
committed by GitHub
parent 7930d87812
commit c05ee6f75f
2 changed files with 13 additions and 9 deletions
+3 -1
View File
@@ -176,10 +176,12 @@ describe("Plan agent demote behavior", () => {
await handler(config)
// then
const agents = config.agent as Record<string, { mode?: string; name?: string }>
const agents = config.agent as Record<string, { mode?: string; name?: string; prompt?: string }>
expect(agents.plan).toBeDefined()
expect(agents.plan.mode).toBe("subagent")
expect(agents.plan.name).toBe("plan")
expect(agents.plan.prompt).toBe("original plan prompt")
expect(agents.plan.prompt).not.toBe(agents.prometheus?.prompt)
})
test("prometheus should have mode 'all' to be callable via delegate_task", async () => {