You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI auto-approve mode approves permission requests from other clients attached to the same server #47817
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
Start a shared server: opencode serve --port 20006
In terminal A: opencode attach http://127.0.0.1:20006 --dir .
In terminal B, same or different directory: opencode attach http://127.0.0.1:20006 --dir .
In terminal A, open the command palette and run "Enable auto-approve permissions". Terminal B stays in normal mode.
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).
Terminal B shows the permission prompt for well under a second, it disappears, and the command runs.
Disable auto in terminal A and repeat step 5. Terminal B now waits for an answer as expected.
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.
Activity
thdxr commentedon Oct 11, 2026
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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊