Skip to content

[BUG] Sub-agent row in session tree is not clickable/openable while the task is still running #23324

@talha7k

Description

@talha7k

Description

In the session tree, when an agent spawns a sub-agent, the sub-agent row appears but cannot be clicked/opened to view its output until the task completes. You have to wait for the entire sub-agent task to finish before the row becomes interactive.

Current behavior

  1. Agent spawns a sub-agent → sub-agent row appears in the session tree
  2. Click on the sub-agent row while it's still running → nothing happens / row is not responsive
  3. Wait for the sub-agent task to complete
  4. Now the row is clickable and opens the sub-agent window

Expected behavior

The sub-agent row should be clickable/openable immediately when it appears, even while the task is still running. Users should be able to view the sub-agent's progress, output, and intermediate results in real-time — similar to how you can watch a running task's output in the main session.

Why this matters

  • Users want to monitor sub-agent progress without waiting for completion
  • Long-running sub-agent tasks make it feel like the UI is frozen/broken
  • Not being able to observe running sub-agents defeats the purpose of parallel task delegation

OpenCode version

1.4.x

Operating System

macOS

Terminal

Any

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
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