Skip to content

[FEATURE]: Display subagent status in TUI prompt footer #23784

@areyouok

Description

@areyouok

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently, when using subagents in OpenCode, there is no visual indication in the TUI prompt footer about how many subagents are active or exist in total. Users have to manually navigate to the subagent view to check this information.

Proposed enhancement:
Add a subagent status indicator to the prompt footer (bottom-right area next to the "commands" hint) that:

  1. Shows nothing when there are no subagents
  2. Displays active/total sub agents when subagents exist
  3. Shows a ⚡ lightning icon next to the active count when there are active subagents, using theme.warning color to draw attention
  4. Uses muted color when no subagents are active

This provides at-a-glance awareness of background subagent activity without leaving the main prompt view.

Implementation approach:

  • Compute recursive descendant count (including nested subagents) from sync.data.session using BFS traversal
  • Check session_status for "busy" or "retry" states to determine active count
  • Conditionally render in the prompt footer using SolidJS <Show>

Screenshots:

With active subagent (⚡ icon + warning color):

Image

Without active subagent (muted color):

Image

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

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