Repository navigation
Conversation
DashboardAgentRow (full mode) already bolds a finished agent's leading text until the user visits its tab, via isUnvisited. CompactAgentRow never got that prop, so the compact sidebar always rendered every row at the same muted weight and a user could not tell a just-finished agent from one they had already checked. Add isUnvisited to CompactAgentRowProps and apply the same font-semibold/text-foreground vs font-normal/text-muted-foreground split DashboardAgentRow uses, then wire it from WorktreeCardAgents' renderCompactAgentBranch using the unvisitedByPaneKey memo that renderAgentBranch already reads for the full-mode row.
There was a problem hiding this comment.
ℹ️ Minor suggestions only — the fix is correct and matches full mode; one coverage gap inline.
Reviewed changes
- Compact row accepts
isUnvisited—CompactAgentRowgains the optional prop and applies the samefont-semibold text-foreground/font-normal text-muted-foreground/90split asDashboardAgentRow, withtwMergecollapsing the focused-visited case tofont-normal text-foreground. - Wiring from the sidebar —
renderCompactAgentBranchpassesisUnvisited={unvisitedByPaneKey[agent.paneKey] ?? false}, the same per-card memo the full row already reads (ackAt < agent.entry.stateStartedAt). - Tests — new happy-dom
worktree-card-compact-agent-row.unvisited.test.tsxrenders the component directly for both prop values; the two compact focus tests inWorktreeCardAgents.test.tsxnow pinstateStartedAt: 0so the row reads visited, with expected class strings updated.
Verified locally: the 31 tests in both files pass and oxlint is clean on all four changed files.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughCompact agent rows now receive the pane-keyed unvisited state. Unvisited rows display leading text in semibold foreground styling; visited rows retain normal muted styling unless focused. Tests cover unvisited and visited styling, and update focus-dimming assertions. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Compact rows receive the unvisited state, and the regression test covers the relevant styling path. No identified issue prevents merging after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 1b262981-8079-40eb-ae13-649738dad652
📒 Files selected for processing (4)
src/renderer/src/components/sidebar/WorktreeCardAgents.test.tsxsrc/renderer/src/components/sidebar/WorktreeCardAgents.tsxsrc/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsxsrc/renderer/src/components/sidebar/worktree-card-compact-agent-row.unvisited.test.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| // Why: bold the row until the user visits its tab (useAutoAckViewedAgent auto-acks on focus, muting it). | ||
| isUnvisited={unvisitedByPaneKey[agent.paneKey] ?? false} |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '80,115p' src/renderer/src/components/sidebar/WorktreeCardAgents.tsx
sed -n '245,276p' src/renderer/src/components/sidebar/WorktreeCardAgents.tsx
rg -n "unvisitedByPaneKey|isUnvisited|stateStartedAt|status ===|status:" src/renderer/src/components/sidebar/WorktreeCardAgents.tsx src/renderer/src/components/dashboard/DashboardAgentRow.tsx src/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsxRepository: stablyai/orca
Length of output: 6352
🏁 Script executed:
#!/bin/bash
sed -n '1,380p' src/renderer/src/components/sidebar/WorktreeCardAgents.tsx
printf '\\n--- referenced definitions ---\\n'
rg -n --glob '*.ts' --glob '*.tsx' "selectAcknowledgedAgentTimes|type .*Agent|interface .*Agent|rowSource|stateStartedAt|isFinished|status.*finished|finished.*status" src/renderer/src | head -240
printf '\\n--- compact row and dashboard styling ---\\n'
sed -n '220,250p' src/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsx
sed -n '248,270p' src/renderer/src/components/dashboard/DashboardAgentRow.tsx
printf '\\n--- relevant PR diff ---\\n'
git diff --unified=30 646e9a5b02514795af5139961ccca225dfa01b12 c27a1953b7077da7b39b543ce52dfa05a9f9cad9 -- src/renderer/src/components/sidebar/WorktreeCardAgents.tsxRepository: stablyai/orca
Length of output: 41265
🏁 Script executed:
#!/bin/bash
printf '%s\\n' '--- row type and data builder ---'
rg -n -C 8 "export type DashboardAgentRow|type DashboardAgentRow|interface DashboardAgentRow|function useDashboardData|useDashboardData" src/renderer/src/components/dashboard/useDashboardData.ts src/renderer/src/components/dashboard src/renderer/src/components/sidebar/useWorktreeAgentRows.ts src/renderer/src/components/sidebar 2>/dev/null | head -260
printf '%s\\n' '--- worktree row hook ---'
sed -n '1,280p' src/renderer/src/components/sidebar/useWorktreeAgentRows.ts
printf '%s\\n' '--- acknowledgement selector ---'
sed -n '1,240p' src/renderer/src/components/sidebar/worktree-card-agent-ack-inputs.ts
printf '%s\\n' '--- status and retained entry contracts ---'
rg -n -C 12 "export (type|interface) AgentStatusEntry|type AgentStatusEntry|interface AgentStatusEntry|RetainedAgentEntry|state:.*working|state:.*done|state:.*waiting|state:.*idle" src/shared src/renderer/src/store src/renderer/src/components/dashboard/useDashboardData.ts src/renderer/src/components/sidebar | head -360Repository: stablyai/orca
Length of output: 41755
🏁 Script executed:
#!/bin/bash
printf '%s\\n' '--- row builder ---'
sed -n '1,340p' src/renderer/src/components/sidebar/worktree-agent-rows.ts
printf '%s\\n' '--- row selectors ---'
sed -n '1,280p' src/renderer/src/components/sidebar/worktree-agent-row-selectors.ts
printf '%s\\n' '--- status type ---'
sed -n '1,240p' src/shared/agent-status-types.ts
printf '%s\\n' '--- decay helper ---'
rg -n -C 15 "agent-row-decay|decay|buildWorktreeAgentRows|rowSource:|state:" src/renderer/src/components/sidebar src/renderer/src/lib/agent-row-decay-state.ts | head -360Repository: stablyai/orca
Length of output: 41973
Restrict isUnvisited to finished agents.
buildWorktreeAgentRows includes live working, blocked, and waiting entries in agents. The acknowledgement comparison does not check agent.entry.state, so an unacknowledged active agent can receive isUnvisited={true}. CompactAgentRow then renders that active row with bold foreground text.
Suggested fix
- out[agent.paneKey] = ackAt < agent.entry.stateStartedAt
+ out[agent.paneKey] =
+ agent.entry.state === 'done' && ackAt < agent.entry.stateStartedAt…ardAgents pullfrog's review on stablyai#22870 pointed out that the compact tests in WorktreeCardAgents.test.tsx force stateStartedAt: 0, so they never exercise the isUnvisited prop the fix wires from WorktreeCardAgents into CompactAgentRow — only the isolated CompactAgentRow test does, which passes regardless of the parent wiring. Deleting the isUnvisited={...} line from renderCompactAgentBranch left every test green. WorktreeCardAgents.test.tsx is already at the oxlint max-lines cap for test files (800 non-blank/non-comment lines), so this integration regression goes in its own file with a trimmed mock harness rather than growing that one further.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the delta since the prior pullfrog review — the follow-up commit e2ec568, which adds one integration regression test.
- Pinned the compact
isUnvisitedwiring — newWorktreeCardAgents.unvisited-wiring.test.tsxrendersWorktreeCardAgentsin compact mode with an unacknowledged agent (stateStartedAt: 1000) and asserts the boldfont-semibold text-foregroundleading span. Verified by mutation that it fails if theisUnvisited={...}wiring line is removed, so the integration path flagged in the prior review is now covered.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Good catch to double-check, but I think this is fine as-is. |
Show unread emphasis in compact workspace rows using the existing pane acknowledgment state. Based on drakeo338’s bounded PR #22870. pinhaum reported #22857 and proposed the broader #22899 variant; the local candidate preserves the existing acknowledgement policy. Co-authored-by: drakeo338 <[email protected]>

ELI5
A finished agent's row in the compact sidebar looked the same as one you'd already checked. Now it stays bold until you open it.
What Changed
Fixes #22857.
DashboardAgentRow(full mode) already bolds an unvisited-finished agent viaisUnvisited;CompactAgentRownever got that prop. Added it, applied the same bold/muted split, wired fromWorktreeCardAgentsvia the same memo the full-mode row already reads.Why
Compact is the default mode; the store already tracked the right state, it just never reached this row.
Linked Issue
Fixes #22857
Visual Proof
N/A, no Electron app here to screenshot — a class toggle mirroring
DashboardAgentRow's styling, asserted by the new test.Testing
Ran
vitest runon the two affected test files on HEAD: 31 passed. Full lint/typecheck/build not run.AI Disclosure
Claude (Anthropic, Sonnet 5) via Claude Code; a human reviewed and authorized it.
Review
AI review: renderer-only styling change, no platform code — cross-platform/SSH/agent-type unaffected, no new inputs/IO, no perf/security concern.
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
Covered above.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — only ran the scoped vitest command above, not the full suite.