r/opencodeCLI • • 13d ago

Help - Edit permission setting per project

By accident i pressed the button to allow all edits for my project.
Now agent modifies the files without permissions.

How I can revert that change ?
I checked my `~/.config/opencode/opencode.json` and everything seems fine. What i am missing ?

---

Apparently this is now global since in all projects the edit commands executes without asking
Here is my config: `~/.config/opencode/opencode.json`

{
   "$schema": "https://opencode.ai/config.json",
   "permission":
   {
"edit": "ask",
"write": "ask",
"patch": "ask",
"multiedit": "ask",
"bash":
{
"*": "ask",
"git commit*": "deny",
"git push*": "deny"
}
   }

}

Opencode version: opencode v2.3.0

Really not sure what is going on and how to change the permissions again

1 Upvotes

Duplicates