You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Make Allow always permission option persist across sessions #20066
When using the permission prompt and selecting Allow always, the permission is only valid for the current session. When opencode is restarted, the permission is lost and the user is prompted again.
Expected behavior
Allow always should save the permission to the config file so it persists across sessions, or there should be a UI option to enable this.
Current behavior
Allow always only lasts until opencode is restarted.
Workaround
Manually adding permissions to opencode.json works, but requires knowing the exact patterns in advance and editing config files.
Additional context
The UI currently shows 'Allow always (until restart)' but users would benefit from an option to make it persist permanently.
Reacted by theWall, Dariusz Czajkowski, caiot5, baterja, Ryan Nowakowski, sakamoto-souta, KlarkC, Ryan McHugh, vsisl, Susan White UTK and 20 more
Reacted by endolith, Etienne Lafarge and Federico García
This appears to be a feature request, but the title does not start with [FEATURE]: as required by the feature request template. Please also include the verification checkbox confirming the feature hasn't already been requested.
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
changed the title [-]Make Allow always permission option persist across sessions[/-][+][FEATURE]: Make Allow always permission option persist across sessions[/+]on Mar 30, 2026
Activity
github-actions commentedon Mar 30, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:as required by the feature request template. Please also include the verification checkbox confirming the feature hasn't already been requested.Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
[-]Make Allow always permission option persist across sessions[/-][+][FEATURE]: Make Allow always permission option persist across sessions[/+]github-actions commentedon Mar 30, 2026
Thanks for updating the issue! It now follows the contributing guidelines and feature request template. The needs:compliance label has been removed.
caiot5 commentedon Apr 21, 2026
Yes please, we need that so bad.
jinnerbichler commentedon Apr 23, 2026
We need this as well.
SusanWhiteUTK commentedon May 28, 2026
Also would like to see the persisted approval to scope to the exact file path/name from the tool call, not a broad glob.
vsisl commentedon Jun 11, 2026
I would also appreciate this. In general I would wish for a permission system similar to how claude code works.
endolith commentedon Jul 29, 2026
"Allow always" should be renamed to "Allow for session" if that's what it actually does.
github-actions commentedon Sep 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
endolith commentedon Sep 30, 2026
Reopen! 😡
Speedymr01 commentedon Oct 1, 2026
@rekram1-node Re-open please
fedeggv commentedon Oct 9, 2026
re open it please 🙏