Skip to content

TUI auto-approve mode approves permission requests from other clients attached to the same server #47817

Closed as not planned

Description

@Zohair-coder

Description

When several TUI clients are attached to one opencode serve instance, turning on auto approve in any one of them approves permission prompts in all of them. The other tabs (still in normal mode) briefly render the prompt, then it disappears and the tool runs. It looks like the permission was skipped.

Plugins

Reproduces with no plugins.

OpenCode version

1.18.25

Steps to reproduce

  1. Start a shared server: opencode serve --port 20006
  2. In terminal A: opencode attach http://127.0.0.1:20006 --dir .
  3. In terminal B, same or different directory: opencode attach http://127.0.0.1:20006 --dir .
  4. In terminal A, open the command palette and run "Enable auto-approve permissions". Terminal B stays in normal mode.
  5. In terminal B, ask the agent to run a command that needs a permission prompt under your config (e.g. a bash command not on an allow list).
  6. Terminal B shows the permission prompt for well under a second, it disappears, and the command runs.
  7. Disable auto in terminal A and repeat step 5. Terminal B now waits for an answer as expected.

Screenshot and/or share link

Screen.Recording.2026-09-07.at.12.20.36.PM.mov

Operating System

macOS 26.6.2, Windows 11

Terminal

WezTerm

Activity

  1. 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