feat(tui): style background subagent indicator#36751
Merged
Merged
Conversation
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.
What
Background subagent rows now show a subtle, padded
Backgroundstatus pill instead of a literal[background]suffix.Before: the background state was embedded in the title as bracketed text, so it had the same visual weight as the subagent identity and description.
After: the title remains plain text and the state uses the existing muted
backgroundElementtreatment with one painted padding cell on each side. Foreground subagent rows remain unchanged.How
packages/tui/src/routes/session/index.tsxformatSubagentTitleresponsible only for the unstyled identity and descriptionScope
This only changes TUI presentation. Subagent execution, background lifecycle, and session state are unchanged.
Testing
bun run testfrompackages/tui: 221 passed, 1 skippedbun typecheckfrompackages/tuibunx prettier --check packages/tui/src/component/spinner.tsx packages/tui/src/routes/session/index.tsx packages/tui/test/cli/tui/inline-tool-wrap-snapshot.test.tsxbun turbo typecheck --concurrency=3: 32 package tasks passedDemo
The newest local OpenCode Drive
mainruns the real TUI and subagent tool flow against a simulated LLM backend. The recording shows the active spinner and painted padded status pill, atomic narrow-terminal wrapping, and the completed checkmark state.recording-c75cd482-0add-4606-981c-c8d6eeee2bcd.mp4