feat(coding-agent): render the subagents summary as a bordered tile - #1586
Open
snimu wants to merge 5 commits into
Open
feat(coding-agent): render the subagents summary as a bordered tile#1586snimu wants to merge 5 commits into
snimu wants to merge 5 commits into
Conversation
The one-line dim summary under the prompt was easy to miss. Render it as a 3-row tile: an accent "agents" label in the top border, then one content line with color-coded counts (green running, yellow idle, dim inactive) and a right-aligned Enter/right-arrow open hint. Colors are fixed regardless of counts; focus keeps the selected-background treatment on the content line.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6d1adac. Configure here.
Review caught that render() clamped to Math.max(24, width), emitting 24-column border lines into narrower viewports — the TUI treats any overflowing line as fatal. The tile now uses the allocated width as-is, truncates the top border, and skips rendering below two columns. Regression test asserts no line exceeds widths down to 1.
Review caught that a focused, truncated tile lost selectedBg after the ellipsis: truncateToWidth injects a full ANSI reset behind the colored counts, clearing the outer background for the rest of the line. Reapply the background per reset-delimited segment, following the custom-editor/side-question precedent. Regression test asserts every reset inside the focused content line is followed by a background SGR.
sethkarten
self-requested a review
August 20, 2026 19:01
sethkarten
previously approved these changes
Aug 20, 2026
Unfocused the tile now shows "↓ select" (down-arrow at end of input moves focus to it); once focused it shows the existing "Enter/→ open".
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.

The subagents entry under the prompt was a single dim line — easy to miss entirely. This renders it as a small bordered tile instead.
Before
After
agentslabel in the top border makes it read as a tile, not a list item.Design exploration: several tile/roster/card prototypes were mocked; this is the chosen minimal variant.
Validation
Fixes ENG-5405 (https://linear.app/primeintellect/issue/ENG-5405)
Note
Low Risk
TUI-only presentation change in the subagent summary; no auth, data, or interaction-model changes beyond extra render height.
Overview
Makes the subagents entry under the prompt easier to spot by replacing the single dim line with a three-line bordered agents tile.
When there are subagents,
SubagentSummaryLine.rendernow draws a box with a bold accent label, color-coded running/idle/inactive counts, and a right-aligned hint (↓ selectunfocused, confirm/open when focused). Hidden at zero children, as before. Focus still uses the selected background, re-applied across truncation ANSI resets so highlighting does not drop. Layout is clamped to the allocated width.Reviewed by Cursor Bugbot for commit ef9c58e. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Render
SubagentSummaryLineas a bordered 'agents' tile with color-coded countsSubagentSummaryLine.renderwith a three-line bordered tile showing running (●), idle (◐), and inactive (○) counts, plus a right-aligned open hint.rendernow outputs three lines instead of one when subagents are present, which changes the height of the interactive mode status area.Changes since #1586 opened
SubagentSummaryLine.rendercomponent withincoding-agentpackage to conditionally display hints based on focus state [ef9c58e]Macroscope summarized d290408.