anomalyco / anomalyco/opencode

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

Open
#47,817 0 comments 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Sep 7, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

https://github.com/user-attachments/assets/c947487a-5ae9-4d8c-8ad5-b029857a3b2c

Operating System

macOS 26.6.2, Windows 11

Terminal

WezTerm

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.