Skip to content

TUI --auto stalls background tabs at permission requests #44007

Description

@AidenGeunGeun

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions