Skip to content

[Desktop] 'Always Allow' permission selection not respected - acts like 'Allow Once' and resets immediately #37880

Closed as not planned

Description

@Pabo0921

Environment

  • App: OpenCode Desktop v1.18.3
  • OS: Windows x64

Steps to Reproduce

  1. Open a session in OpenCode Desktop
  2. Ask agent to perform an action requiring permission (e.g., edit a file or run a bash command)
  3. Click "Always Allow" (????) on the permission prompt dialog
  4. 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:

But none of these have a confirmed fix, and the issue persists in v1.18.3 Desktop.

Activity

  1. github-actions commented on Jul 20, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from the above, please note the differences so maintainers can triage accordingly.

  2. vicentesurraco commented on Jul 23, 2026

    @vicentesurraco

    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.

  3. dmitryrn commented on Aug 21, 2026

    @dmitryrn

    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

  4. AizerMortenort commented on Sep 30, 2026

    @AizerMortenort

    any fix to this???

  5. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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