Skip to content

[BUG] Cancelled subagents can't be opened in TUI + Ctrl+X intermittently fails #32432

Description

@aqeelat

Description

Two related subagent navigation issues in the TUI:

Part A — Cancelled subagents become inaccessible:

While a subagent is running, clicking on it in the TUI navigates to its session view — you can watch its progress, tool calls, and output. But once the subagent is cancelled (e.g., via Esc Esc), clicking on it does nothing. The session transcript becomes completely inaccessible from the TUI.

This is problematic because you often want to cancel a subagent that's gone down the wrong path, then inspect what it found before discarding it. Currently there's no way to do this.

Part B — Ctrl+X (agent/session switcher) intermittently fails:

Ctrl+X sometimes doesn't open the picker at all. No error, no feedback — it just does nothing. Haven't been able to identify a reliable pattern for when it fails vs works. When it does work, the picker shows subagent sessions but the reliability issue makes it an unreliable workaround for Part A.

Plugins

None

OpenCode version

1.17.7

Steps to reproduce

Part A:

  1. Launch a subagent (e.g., via the task tool — task(subagent_type="explore", ...))
  2. While it's running, click on the subagent row — you can view its session ✓
  3. Cancel the subagent with Esc Esc
  4. Click on the now-cancelled subagent row
  5. Nothing happens — the session is inaccessible ✗

Part B:

  1. During an active session with or without subagents, press Ctrl+X
  2. Sometimes the picker appears, sometimes it doesn't
  3. No consistent trigger identified

Screenshot and/or share link

N/A

Operating System

macOS

Terminal

TUI

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions