mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-08 14:14:57 +00:00
fix(core): tell plan agent to discuss plans instead of writing files by default (#46905)
This commit is contained in:
parent
a085bf62a4
commit
dbd47702b2
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ import { Permission } from "../permission.js"
|
|||
const plan = Agent.ID.make("plan")
|
||||
|
||||
const enter = (directory: string) => `<system-reminder>
|
||||
You are in Plan mode. You may optionally create or update plan documents in:
|
||||
You are in Plan mode. Discuss the plan with the user directly in the conversation. Do not create or update plan files unless the user explicitly asks you to; when they do, write them only in:
|
||||
${directory}
|
||||
|
||||
Do not modify any other files or ask a subagent to do so.
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ describe("plan plugin reminders", () => {
|
|||
const { persisted } = yield* run([agentSelected(plan, build), agentSelected(build, plan)])
|
||||
yield* settle(persisted, 2)
|
||||
expect(persisted[0]).toContain("You are in Plan mode")
|
||||
expect(persisted[0]).toContain("optionally create or update plan documents")
|
||||
expect(persisted[0]).toContain("Do not create or update plan files unless the user explicitly asks you to")
|
||||
expect(persisted[0]).toContain(planDirectory)
|
||||
expect(persisted[0]).toContain("Do not modify any other files")
|
||||
expect(persisted[1]).toContain("NO LONGER in Plan mode")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue