Skip to content

permission required cannot select #27436

Closed as not planned
Closed as not planned

Description

@1122414

Description

When I clicked "Allow once", I couldn't click it. When I clicked "Allow always", it kept repeatedly jumping to "Always allow", and when I clicked "Reject", I couldn't submit the content in "Tell Opencode what to do differently", causing the session to get stuck here. Moreover, even after I directly closed the VSCode Opencode plugin, it still showed in the "Operation Env" and I couldn't continue the operation.
Image

Image Image

Plugins

vscode

OpenCode version

1.14.48

Steps to reproduce

The current situation I'm facing is as follows: When opencode attempts to read or write the .env file again and requires permissions, this problem may occur.

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

windows terminal

Activity

  1. github-actions commented on May 14, 2026

    @github-actions
    Contributor

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

  2. 1122414 commented on May 14, 2026

    @1122414
    Author
    opencode.mp4
  3. arturgoms commented on May 18, 2026

    @arturgoms

    That is also happening to me on 1.15.3

  4. MichalCz commented on May 20, 2026

    @MichalCz

    This is still happening to me as well. Any chances to fix this and a temporary workaround?

  5. maojianh commented on May 28, 2026

    @maojianh

    The issue persists and has not been resolved.

    v1.15.11

  6. Rajeshwaran-R commented on May 29, 2026

    @Rajeshwaran-R

    facing same in v1.15.12

  7. Rajeshwaran-R commented on May 29, 2026

    @Rajeshwaran-R

    I uninstall and reinstalled opencode via curl. The same version works for me on same working directory with same model and prompt.

  8. DerekCorniello commented on Jun 1, 2026

    @DerekCorniello

    Happening to me today on v1.15.13.

  9. jasonfirkus commented on Jun 1, 2026

    @jasonfirkus

    Happening to me right now

  10. arimotearipo commented on Jun 2, 2026

    @arimotearipo

    Is there a fix or a workaround for this? This has made opencode practically unusable for me.

  11. ztobs commented on Jun 5, 2026

    @ztobs

    Also affected on Linux:

    Operating System: Ubuntu 26.04 LTS (Resolute Raccoon)
    Kernel: Linux 7.0.0-22-generic x86_64
    Desktop: GNOME (Wayland)
    Terminal: GNOME Terminal (xterm-256color)
    Shell: zsh
    Node: v23.1.0
    OpenCode version: v1.15.12 through v1.16.0

    Same symptoms — permission dialog options (Allow once, Allow always, Reject) cannot be selected using either keyboard or mouse. Also affects Esc to cancel/stop actions. Not limited to Windows.

  12. samuel-pullely commented on Jun 5, 2026

    @samuel-pullely

    Confirming this on v1.16.0 (Linux x86_64, VS Code integrated terminal, xterm-256color).

    Symptoms:

    • "Allow once" and "Reject" are unresponsive — clicking or pressing Enter does nothing
    • "Allow always" does register — it shows the "Always allow" confirmation dialog listing the matched patterns, and clicking Confirm succeeds
    • But after confirming "Always allow", it loops back to the same permission dialog for the same command, and the buttons are unresponsive again
    • Ctrl+P command menu opens, but selecting "Exit the app" from it also does nothing
    • Only fix is to kill the process externally
    • Happens intermittently — sometimes the dialog works fine, other times it freezes on first appearance

    Environment:

    • OpenCode v1.16.0
    • Linux (container, kernel 6.8.0, x86_64)
    • Terminal: VS Code integrated terminal (xterm-256color)
    • Shell: zsh

    Additional observations:

    • Non-deterministic: starting a new session in the same directory doesn't always reproduce it, but once a session is stuck it's non-recoverable
    • The "Always allow" confirm loop suggests the permission approval isn't being persisted or the command is being re-evaluated before the approval takes effect
  13. samuel-pullely commented on Jun 5, 2026

    @samuel-pullely

    @Hona gentle ping — this is still affecting multiple users on v1.16.0. Any progress on a fix?

  14. dhlang001 commented on Jun 6, 2026

    @dhlang001

    @Hona gentle ping — this is still affecting multiple users on v1.16.0. Any progress on a fix?

    no...Still happing...v1.16.2

  15. DerekCorniello commented on Jun 7, 2026

    @DerekCorniello

    I haven't been able to reproduce in a while, I am on v1.16.2

  16. nfedyashev commented on Jun 12, 2026

    @nfedyashev

    Starting to experience this only after 1.17.4 upgrade, it was completely unusable for me.

    * UPDATE
    After I did downgrade opencode upgrade 1.16.2 it works fine again

  17. dhlang001 commented on Jun 13, 2026

    @dhlang001

    I think I may have figured out the cause. When I switch to web mode, a rather odd log like this pops up. I suspect this issue is identical to the one in cmd mode — it feels like a certain index has gone missing.
    我猜我可能找到了原因,当我切换到web模式下,会出现这样一个神奇的log。我怀疑这个问题和cmd模式下的这个问题是一样的,就像是丢失了某个索引。

    Image Image
  18. github-actions commented on Aug 13, 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.

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