Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe compact agent row now always renders the primary text first. It appends secondary text only when the secondary text differs from the primary text. Monitoring rows show the prompt before the monitoring label. Rows without a prompt show the monitoring state once. Tests update expected titles, markup, and accessibility labels for these cases. Merge Risk: ⚪ Minimal · up to This change keeps agent names visible in compact monitoring rows while preserving the monitoring indicator and accessibility label; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Description checkExplanation The description is complete and follows the repository template. It explains the change, rationale, linked issue, visual proof, testing, AI disclosure, compatibility considerations, and checklist status. Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
CompactAgentRowname-first ordering — thedotState === 'monitoring'branch that swapped primary/secondary is removed; the row now always renders<primary> - <secondary>, so the agent name survives default-width truncation while the monitoring state stays visible via theAgentStateDotglyph,aria-label, and tooltip.- Universal passive/active dedup — the
primary === secondary ? '' : secondaryguard that previously lived only in the monitoring branch now applies to all states, collapsing redundantX - Xrows without losing information. - Tests updated and extended — monitoring assertions now expect name-first ordering, a new case pins the no-prompt row naming the state exactly once, and the prompt-first case additionally asserts the state dot still carries
aria-label="Monitoring background tasks".
I traced the ordering/truncation invariants (the passive-vs-active distinction now rides on the untruncatable dot + tooltip), the interrupted/unverifiable fallbacks that stay distinct, and the no-prompt monitoring case that correctly collapses to a single state label, and ran the affected test file (5 passing). The change is renderer-only and consistent with how DashboardAgentRow and mobile already order the row.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
The compact agent row led with the 27-char "Monitoring background tasks" label and put the agent name after the dash, so at default sidebar width the name truncated out of view and two monitoring agents looked identical. Every other state renders name first; do the same for monitoring and drop the trailing text only when it would repeat the leading text. The state dot and its tooltip still show the monitoring state. Fixes stablyai#17546 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwSFoun5enrK3iiFrbFWRz
96ca0c3 to
272a7dd
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Rebase onto
main— the single commit was force-pushed and re-applied onto a newermain; its patch body is byte-identical to the previously reviewed version (same two files, same19 +/10 −), so the name-first ordering and the universal passive/active dedup are unchanged. - Base drift in
getCompactAgentSecondary— the new base now callsgetCompactAgentSecondary(agent, now, stableMessage)with an addedlastAssistantMessageOverride. I traced that the monitoring branch (working+workingMode: 'monitoring') short-circuits to the state label before that override is consulted, so the name-first monitoring row is unaffected.
I re-ran worktree-card-agent-summary.test.ts against the new base (5 passing) and confirmed no interaction between the rebased signature and the dedup logic.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Still reproducible on 1.4.206 (Linux, orca-ide-bin). When several Claude Code agents are monitoring background tasks, every sidebar row reads "Monitoring background tasks - ", so you can't tell the agents apart at a glance, and the state dot already shows the monitoring state. The cause is still in WorktreeCard: |

ELI5
In the sidebar's compact agent list, an agent that is "monitoring background tasks" showed its status label first and its name second. That label is 27 characters long, so at the default sidebar width the row read "Monitoring backgroun…" and the name never appeared. Every other state shows the name first. This PR makes the monitoring row do the same: name first, status after the dash. The yellow heartbeat icon on the row (and its tooltip) still says the agent is monitoring.
What Changed
CompactAgentRow(src/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsx): the leading/trailing text no longer swaps places fordotState === 'monitoring'. The row always renders<primary> - <secondary>.X - Xrows and loses no information. Interrupted and unverifiable rows are unaffected because their primary fallback (Interrupted,No recent update) and secondary labels (Interrupted by user,No update in 34m) never match. The no-prompt monitoring row, where both fall back to the state label, still readsMonitoring background tasksexactly once.worktree-card-agent-summary.test.ts): the existing monitoring-row assertions now expect name-first ordering, a new case checks that a monitoring row without a prompt names the state once, and the prompt-first case also pins that the state dot still carriesaria-label="Monitoring background tasks", since that dot is now what names the state when the trailing label truncates.No change to
getCompactAgentSecondary, the dot state, the tooltip, the full-sizeDashboardAgentRow, or mobile (both were already name-first). The review-notes send menu still lists the state label before the tab title in its secondary line; that is a dropdown, not a truncating sidebar row, and is out of scope here.Why
Fixes #17546. With two or more monitoring agents in one worktree (a coordinator plus a log monitor, say), their rows were visually identical at default width and could only be told apart by hovering each one.
The status-first ordering came from ec4687c (#16201), whose comment named the invariant it protected: sidebar truncation must preserve the passive-vs-active distinction. That was the right call under the conditions it shipped in. At that point
AgentStateDotset only an aria-label on the monitoring glyph and rendered no hover tooltip, as #16981 later documented, so the leading text was the only place a mouse user could read the state from. #16981 changed that premise: every state glyph now carries a labelled tooltip, and monitoring moved fromRadioto a staticActivityheartbeat chosen because it reads as "still running". The distinction therefore now rides on a glyph that cannot be truncated, while the ordering that used to protect it costs the row the one piece of information nothing else on the row carries: the agent's name. Ordering the row like every other state keeps the distinction (yellowActivityglyph plus tooltip, and the label after the dash when there is room) and lets the name survive truncation.Two edge cases worth naming rather than leaving for review to find:
prefers-reduced-motionthe working spinner freezes into a complete yellow ring, so for those users working and monitoring separate on glyph shape and size (6px ring vs 10px heartbeat) plus the tooltip and aria-label, not on motion. That was already the case before this PR.Linked Issue
Fixes #17546
Visual Proof
pnpm devon macOS, default sidebar width, two Claude sessions in one worktree that each left asleep 900background shell running and ended their turn.Before (status label first; the two rows are indistinguishable):

After (name first; the yellow heartbeat glyph and its tooltip still show the monitoring state):

Testing
pnpm test src/renderer/src/components/sidebar/worktree-card-agent-summary.test.tspnpm test(full suite: 7465 files passed, 48 skipped)pnpm tcpnpm run check:code-quality:changed,oxlint,oxfmt --checkon the changed filesManually verified in
pnpm devon macOS (Apple Silicon): started a Claude Code session in a worktree terminal, had it leave a background shell task running and end its turn, and confirmed the sidebar row reads<name> - Monitoring background taskswith the yellow heartbeat glyph, then reverted the component to capture the before state from the same session.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Implemented with Claude Code (Claude Fable 5.1) under the author's direction; the author reviewed the diff, ran the checks, and captured the screenshots.
Review
AI code review summary (Claude Code, four independent review passes with adversarial verification of each finding):
DashboardAgentRowdata regardless of execution host; no RPC or wire shape changes.workingMode: 'monitoring'is the only input and is unchanged; the change applies uniformly to whichever agent reports it.DashboardAgentRowand mobile; the tooltip text follows the same order as the visible text because both derive from the same pair. No color or layout change, so light/dark are unaffected.leadingText/trailingTextnames.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Mobile's worktree row already renders name-first and is untouched.
Author
X: @gum79
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)🤖 Generated with Claude Code
https://claude.ai/code/session_01WwSFoun5enrK3iiFrbFWRz