Description
Environment
- App: OpenCode Desktop v1.18.3
- OS: Windows x64
Steps to Reproduce
- Open a session in OpenCode Desktop
- Ask agent to perform an action requiring permission (e.g., edit a file or run a bash command)
- Click "Always Allow" (????) on the permission prompt dialog
- The agent asks for the same permission again immediately in the same session
Actual Behavior
"Always Allow" has the same effect as "Allow Once" - permissions are not remembered even within the same session. Clicking "Always Allow" repeatedly keeps showing the same prompt. This makes it impossible to leave an agent working unattended.
Expected Behavior
"Always Allow" should persist the approval for the remainder of the session (or at least the conversation), and the user should not be prompted again for the same permission pattern.
Notes
This issue only affects the Desktop app. The permission config in \opencode.json\ (e.g., "permission": { "*": "allow" }) is respected correctly - the bug is specifically with the interactive UI permission prompt.
Related Known Issues
This is likely related to several existing reports:
- Permission selection not respected #6020 - Permission selection not respected (same symptoms)
- [Bug] Auto-approve permissions toggle resets to OFF after restart #27487 - Auto-approve permissions toggle resets to OFF after restart
- Persist 'always' permission approvals to disk #10753 - Persist 'always' permission approvals to disk
- permission required cannot select #27436 - permission required cannot select (clicking Allow always not working)
- [BUG]
permission: "allow"andpermission.* = "allow"still trigger approval prompts #28482 - \permission: "allow"\ still triggers approval prompts
But none of these have a confirmed fix, and the issue persists in v1.18.3 Desktop.
Activity
github-actions commentedon Jul 20, 2026
This issue might be a duplicate of existing issues. Please check:
permission: "allow"andpermission.* = "allow"still trigger approval prompts #28482:permission: "allow"config still triggers approval prompts (related permissions not being respected)If your issue is distinct from the above, please note the differences so maintainers can triage accordingly.
vicentesurraco commentedon Jul 23, 2026
Having the same issue on the latest desktop. It always resets on restart and it sometimes resets mid-session. When it resets mid-session the LLM bugs out and repeatedly gets denied permission without me being asked whether I approve its requests.
dmitryrn commentedon Aug 21, 2026
Having this issue on Windows in terminal as observed behavior, in the same session specifically, no restarts, no anything, "Allow always" behaves like "Allow once"
specifically "cmd.exe *" and "powershell.exe *" patterns
Opencode version: 1.17.13 and 1.18.19
AizerMortenort commentedon Sep 30, 2026
any fix to this???
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊