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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user