Skip to content

[FEATURE]:Add "Accept for Session" Option for Permission Prompts #3419

Closed

Description

@NickPaul41

Feature hasn't been suggested before.

  • 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
  • Improves user experience and workflow efficiency

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Oct 24, 2025
  2. github-actions commented on Oct 24, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. rekram1-node commented on Oct 24, 2025

    @rekram1-node
    Contributor

    @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

  4. NickPaul41 commented on Oct 24, 2025

    @NickPaul41
    Author

    Oh that's perfect! I can close this then.

  5. RomainLanz commented on Dec 19, 2025

    @RomainLanz

    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.

  6. rekram1-node commented on Dec 19, 2025

    @rekram1-node
    Contributor

    @RomainLanz Dax is redoing permissions UX rn i think it should help w/ this to a degree more improvements shipping soon

  7. RomainLanz commented on Jan 3, 2026

    @RomainLanz

    Should I open another issue? Because it seems there a many improvement but nothing related to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions