Skip to content

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

Closed as not planned

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

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 22, 2026
  2. github-actions commented on Apr 22, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  3. herjarsa commented on Apr 25, 2026

    @herjarsa

    Superseded by #24404 - this feature request is now covered by the unified task state color convention PR.

  4. herjarsa commented on Apr 25, 2026

    @herjarsa

    Superseded by #24404 - this feature request is now covered by the unified task state color convention PR.

  5. herjarsa commented on Apr 26, 2026

    @herjarsa

    Retracting previous comment - this issue is NOT superseded by #24404. These are different features: #23784 requests subagent count in the TUI prompt FOOTER specifically, while #24404 addresses general task state COLOR convention. They address different UI elements and use cases.

  6. assigned and unassigned on Apr 26, 2026
  7. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. darianstlex commented on Jun 6, 2026

    @darianstlex
  9. mguttmann commented on Jun 13, 2026

    @mguttmann

    PR #32167 (proposal #32166) adds subagent depth badges and a tree/footer indicator in the TUI, which should cover this. Pointer in case it's useful for the design discussion.

  10. github-actions commented on Aug 13, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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