Skip to content

[FEATURE]: Make Allow always permission option persist across sessions #20066

Closed as not planned

Description

@Speedymr01

Description

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.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 30, 2026
  2. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • 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:

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. changed the title [-]Make Allow always permission option persist across sessions[/-] [+][FEATURE]: Make Allow always permission option persist across sessions[/+] on Mar 30, 2026
  4. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now follows the contributing guidelines and feature request template. The needs:compliance label has been removed.

  5. caiot5 commented on Apr 21, 2026

    @caiot5

    Yes please, we need that so bad.

  6. jinnerbichler commented on Apr 23, 2026

    @jinnerbichler

    We need this as well.

  7. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. SusanWhiteUTK commented on May 28, 2026

    @SusanWhiteUTK

    Also would like to see the persisted approval to scope to the exact file path/name from the tool call, not a broad glob.

  9. vsisl commented on Jun 11, 2026

    @vsisl

    I would also appreciate this. In general I would wish for a permission system similar to how claude code works.

  10. endolith commented on Jul 29, 2026

    @endolith

    "Allow always" should be renamed to "Allow for session" if that's what it actually does.

  11. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  12. endolith commented on Sep 30, 2026

    @endolith

    Reopen! 😡

  13. Speedymr01 commented on Oct 1, 2026

    @Speedymr01
    Author

    @rekram1-node Re-open please

  14. fedeggv commented on Oct 9, 2026

    @fedeggv

    re open it please 🙏

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions