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]:Add "Accept for Session" Option for Permission Prompts #3419
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When approving Permission required to run this tool:, I currently have three options: accept, reject, and always. I do not want to set permissions as "always" (which persists across sessions), so I choose "accept." However, when Opencode executes the same command again, it re-prompts for permission each time.
I would like to add a fourth option: "Accept for Current Session". This would allow Opencode to run those commands again during the current session without re-prompting, while not persisting the permission in future sessions.
Benefits:
Reduces repetitive permission prompts during active work
Maintains security by not permanently storing permissions
the "always" only lasts as long as the opencode instance runs it is held in memory and not persisted just so you know
Sorry to bump this, but is there a way to reset this setting back to ask without exiting the session?
The timing of prompts sometimes overlaps with my typing, causing me to accidentally hit a and trigger "always accept" mode. Once that happens, OpenCode starts auto-approving everything, which can quickly spiral out of control.
For reference, Claude Code handles this nicely by allowing you to toggle between ask/auto-accept modes at any time using Shift+Tab and prompts use 1, 2, 3.
Activity
github-actions commentedon Oct 24, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 24, 2025
@NickPaul41 the "always" only lasts as long as the opencode instance runs it is held in memory and not persisted just so you know
This is non obvious and we are rethinking some of our ux around permissions
NickPaul41 commentedon Oct 24, 2025
Oh that's perfect! I can close this then.
RomainLanz commentedon Dec 19, 2025
Sorry to bump this, but is there a way to reset this setting back to
askwithout exiting the session?The timing of prompts sometimes overlaps with my typing, causing me to accidentally hit a and trigger "always accept" mode. Once that happens, OpenCode starts auto-approving everything, which can quickly spiral out of control.
For reference, Claude Code handles this nicely by allowing you to toggle between ask/auto-accept modes at any time using Shift+Tab and prompts use
1,2,3.rekram1-node commentedon Dec 19, 2025
@RomainLanz Dax is redoing permissions UX rn i think it should help w/ this to a degree more improvements shipping soon
RomainLanz commentedon Jan 3, 2026
Should I open another issue? Because it seems there a many improvement but nothing related to this.