anomalyco / anomalyco/opencode
TUI --auto stalls background tabs at permission requests
Open
@simonklee is already working on this.
Since Aug 21, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
In the V2 TUI, --auto only approves permission requests for the currently selected session route. An open background tab can remain blocked until the user selects it, at which point the request is approved and execution continues.
The auto-approval effect currently lives in packages/tui/src/routes/session/index.tsx, while background tab permission state is loaded by session-tabs.tsx.
Steps to reproduce
- Start the TUI with
opencode --auto. - Open two session tabs and let both run.
- Keep one tab selected while the background session reaches a permission request, such as
external_directory. - Observe that its tool does not start.
- Select the blocked tab; it is approved and continues.
Expected: auto mode handles permission requests for every open tab and its child sessions.
OpenCode version
V2 at 9e9eac81e.
Operating system
macOS
Terminal
Ghostty
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.