agents view: move the subagent expand affordance onto the summary line - #2145
Conversation
Prime Agent performance — failedPR Overall: 0 regressed · 0 improved · 2 no clear change · 15 unavailable.
Python runtime
Sandbox cost: ~$0.1949 — no inference calls. Methodology and samplesMain resolved at 2026-09-12T06:37:39.265540+00:00. Harness
Failures:
|
The tray now names what the arrows do on the selected row: open, or expand/collapse on a subagent summary line, plus a parent hint only inside an agent scope. The ? actions hint is gone from the tray; the overlay itself stays reachable.
975b23e to
3414dcf
Compare
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.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit fa0a330. Configure here.


LOC
+51 / −50 across 3 files: agents-view-mode.ts (−12 net), agents-view-mode.test.ts, one changelog fragment. No new files, no new helpers.
Purpose
The expand/collapse affordance for a session's subagents was a small
▸/▾glyph squeezed onto the session row, left of the name — easy to miss, and attached to the wrong element: the thing that expands is the subagent list, which already has its own summary line below ("2 subagents running"). Worse, when all subagents were finished and collapsed, that summary line did not render at all, so the only hint that anything was expandable was the tiny glyph.Changes
buildAgentsViewRows) now stays in the rendered row list instead of being folded away; it renders as▸ 2 subagents running/▾ …in the normal foreground and is the expand/collapse control.Validation
npm run check(pre-commit) passes.Fixes RES-1327
Note
Low Risk
UI and navigation changes in the agents view only, with no auth, data, or daemon protocol changes.
Overview
Subagent lists in the agents view now expose expand/collapse on the always-visible subagent summary row (
▸/▾plus count text) instead of a tiny arrow on the parent session row or a separate green “N subagents running” line.Summary rows stay in the selectable row list (
compactSessionRowsremoved ); Enter and the expand key toggle the list when a summary row is focused, while session rows no longer show arrows. The hint tray reflects context (open vs expand/collapse,← parentonly when scoped), and selection restoration keeps a subagent-summary row selected across roster refreshes.Tests and a changelog note cover the new UX; unrelated agent-trace test timer/outbox waits were tightened.
Reviewed by Cursor Bugbot for commit 9254a97. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Move subagent expand/collapse arrow onto the summary line in
agents-viewcompactSessionRowshelper. They render an expand/collapse arrow (▸/▾) alongside their title.openSelectednow toggle the child list when a summary row is selected, andtoggleSubagentListupdates the parent session's expansion state.rowscollection.DisplayItemno longer has therunning-subagentsvariant; the synthetic running-subagents status line is gone and replaced by the persistent summary row, which remains visible even when all children are idle.Changes since #2145 opened
AgentsViewMode.restoreSelectionto unconditionally delegate toresolveAgentsViewSelectionStateand updatedresolveAgentsViewSelectionIndexto derive synthetic kind from identity and preserve kind when matching by active session ID or session ID [9254a97]Macroscope summarized fa0a330.