opencode
opencode copied to clipboard
BUG: Overriding built-in agents, doesn't allow overriding permissions
Description
I am overriding the built-in agents (e.g., using agent/plan.md) which although not documented, it successfully catches my new prompt. However, I want this agent to be able to write markdown files, but even though i am properly setting permissions, agent qoutes:
"CRITICAL: Plan mode ACTIVE - you are in READ-ONLY phase. STRICTLY FORBIDDEN: ANY file edits, modifications, or system changes...
Expected behavior in my opinion is that if another definition of a plan agent exists, it should bypass the original plan agent entirely.
OpenCode version
0.15.29 (latest)
Steps to reproduce
- define plan.md agent
- give it write permissions (e.g., to a .md files, example below)
- give it a custom prompt
- ask it to generate a file and see your prompt is used but permissions are ignored
permission example:
permissions:
write:
".plan/*": allow
"*": deny
edit:
".plan/*": allow
"*": deny
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response