Skip to content

feat(tui): add subagent status indicator in prompt footer#23785

Open
areyouok wants to merge 1 commit intoanomalyco:devfrom
areyouok:subagent_status
Open

feat(tui): add subagent status indicator in prompt footer#23785
areyouok wants to merge 1 commit intoanomalyco:devfrom
areyouok:subagent_status

Conversation

@areyouok
Copy link
Copy Markdown

@areyouok areyouok commented Apr 22, 2026

Issue for this PR

Closes #23784

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a subagent status indicator to the TUI prompt footer. Currently there is no visual indication of subagent activity in the main prompt view — users must navigate to the subagent view to check.

The change computes recursive descendant count (including nested subagents) from session data using BFS traversal, checks session_status for "busy" or "retry" states to determine active count, and conditionally renders in the prompt footer:

  • Hidden when no subagents exist
  • Shows active/total sub agents in muted color when no subagents are active
  • Shows ⚡active/total sub agents in warning color when subagents are active

How did you verify your code works?

  • Tested with multiple nested subagent hierarchies
  • Verified count updates correctly as subagents complete or become active
  • Verified indicator is hidden when no subagents exist

Screenshots / recordings

With active subagent:
subagent_status_with_active_subagent

Without active subagent:
subagent_status_without_active_subagent

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@areyouok areyouok requested a review from adamdotdevin as a code owner April 22, 2026 04:00
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 22, 2026
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Show active/total count of all descendant sub-agents (not just direct
children) in the prompt status bar, with cycle-safe BFS traversal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Display subagent status in TUI prompt footer

1 participant