anomalyco / anomalyco/opencode

TUI --auto stalls background tabs at permission requests

Open
#44,007 3 comments 0 reactions 1 assignee View on GitHub

@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
  1. Start the TUI with opencode --auto.
  2. Open two session tabs and let both run.
  3. Keep one tab selected while the background session reaches a permission request, such as external_directory.
  4. Observe that its tool does not start.
  5. 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

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.