feat(cli): show running spinner in subagent footer#10310
Merged
catrielmuller merged 2 commits intoJun 2, 2026
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Notes:
Reviewed by claude-sonnet-4.6 · 123,219 tokens |
Add an animated spinner to the subagent session footer to indicate when a subagent is actively working, matching the running status indicator shown in the main session prompt.
2274316 to
8ba95b1
Compare
catrielmuller
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Subagent sessions in the TUI have no visual indicator showing whether the subagent is currently running or idle. The main session displays an animated spinner in the prompt component when the agent is working, but the subagent footer only shows the label, sibling count, usage stats, and navigation buttons, making it impossible to tell at a glance if a subagent is still processing or has finished.
Closes #10309
Implementation
Added a running status indicator to the
SubagentFootercomponent (packages/opencode/src/cli/cmd/tui/routes/session/subagent-footer.tsx):isRunningmemo: Checkssession_statusstore (real-time SSE events) for"busy"state, with a fallback to checking if the last assistant message lackstime.completed.agentColormemo: Derives the spinner color from the last assistant message's agent field vialocal.agent.color().<Spinner color={agentColor()} />between the subagent label/count and usage stats when running.No "esc interrupt" text is included since subagent sessions don't have an input prompt to interrupt, the spinner alone communicates "working" status.
Screenshots
Before
before.mp4
After
after.mp4
How to Test
kilo)tasktool (e.g., "explore the codebase and find all API endpoints")Get in Touch
Discord: @IamCoder18