anomalyco / anomalyco/opencode
TUI auto-approve mode approves permission requests from other clients attached to the same server
Open
@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
- 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.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.