Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between ca9cb830831a84ab388ce86670deb1dcf01f8bf0 and bbcfa35. 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe change adds Mergeability Score: 🔵 Low · up to The change is mergeable with owner awareness of a bounded display issue: in an uncommon split-pane scenario, a foreground-working terminal could be labeled as monitoring, while the safe fallback generally preserves the Working state. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 |
ca9cb83 to
bbcfa35
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/runtime/orca-runtime.ts (1)
18222-18257: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winVerify the evidence-matching fallback and consider extracting the classification block.
runtimeWorkingTerminalEvidenceMatchesSourcefalls back to atabId-only comparison when bothevidence.paneKeyandevidence.ptyIdfail to matchsource. Leaf-based evidence always carries a non-nullpaneKey(makeRuntimePaneKeynever returns null), so this fallback only activates for PTY-loop evidence with a nullpty.paneKeycombined with a hook-only monitoring source that has noptyId(no prior OSC snapshot). In that narrow case, a plain foreground shell sharing a tab with a monitored agent pane (a split terminal) could be misattributed to the monitoring source through the sharedtabId, and the workspace would showmonitoringinstead ofworking. Confirm this case is intentionally accepted, or exclude it, since it affects the working/monitoring precedence.Separately, the block computing
hasForegroundWorkingAgent,monitoringSources, and the final classification is a self-contained algorithm buried inside an already large method. Consider extracting it into a named helper (similar toaddRuntimeWorkingTerminalEvidenceandruntimeWorkingTerminalEvidenceMatchesSource) so it can be unit tested independently ofattachAgentRowsToSummaries.
🔇 Additional comments (89)
mobile/src/components/AgentSpinner.tsx (1)
2-4: LGTM!Also applies to: 22-57
mobile/src/components/AgentStateDot.tsx (1)
2-2: LGTM!Also applies to: 11-18, 49-56, 72-72
mobile/src/components/WorktreeListRow.test.ts (1)
202-226: LGTM!mobile/src/components/WorktreeListRow.tsx (1)
5-5: LGTM!Also applies to: 43-43, 102-102
mobile/src/components/agent-monitoring-indicators.test.ts (1)
1-87: LGTM!mobile/src/session/use-mobile-native-chat-controller.test.ts (1)
699-701: LGTM!Also applies to: 727-727, 742-742, 756-765
mobile/src/session/use-mobile-native-chat-controller.ts (1)
117-124: LGTM!mobile/src/worktree/agent-row-display.test.ts (1)
31-33: LGTM!Also applies to: 71-76
mobile/src/worktree/agent-row-display.ts (1)
12-39: LGTM!Also applies to: 51-52
mobile/src/worktree/workspace-list-types.ts (1)
2-2: LGTM!Also applies to: 49-49
mobile/src/worktree/worktree-list-snapshot.test.ts (1)
163-175: LGTM!mobile/src/worktree/worktree-list-snapshot.ts (1)
58-58: LGTM!Also applies to: 106-106
src/main/agent-hooks/hook-status-session-tabs-invalidation.test.ts (1)
34-34: LGTM!src/main/agent-hooks/server.test.ts (1)
524-524: LGTM!Also applies to: 6759-6763, 8563-8608
src/main/agent-hooks/server.ts (1)
66-66: LGTM!Also applies to: 898-898, 1811-1811, 2513-2518
src/main/ipc/dashboard-payload-validation.test.ts (1)
100-112: LGTM!Also applies to: 123-134
src/main/ipc/dashboard-payload-validation.ts (1)
259-260: LGTM!src/main/runtime/orca-runtime.test.ts (1)
35767-35800: LGTM!Also applies to: 35861-35861, 35920-35920, 35930-36227
src/main/runtime/orca-runtime.ts (2)
54-54: LGTM!Also applies to: 1576-1601, 17681-17681, 17865-17873, 17935-17943, 18044-18046, 18069-18090, 18129-18131, 18147-18147, 18194-18194, 37781-37793, 37810-37833
18103-18118: 🗄️ Data Integrity & Integration
⚠️ Unverified finding
Sandbox verification was unavailable.Confirm
terminalStatusPayloadMatchesHookargument order.The call is
terminalStatusPayloadMatchesHook(hookPayload, existing.payload). This file does not contain the function definition, so the parameter order cannot be confirmed here. If the shared helper expects(terminalPayload, hookPayload)instead, the equivalence check silently inverts, and a stale hook row could restoremonitoringonto an OSC row whose content actually changed, or block a valid restore.Confirm the parameter order against
src/shared/agent-terminal-status-equivalence.tsbefore merge.Run the following script to check the function signature:
src/main/ssh/ssh-relay-session-agent-hooks.integration.test.ts (1)
53-53: LGTM!Also applies to: 188-188, 303-337
src/relay/agent-hook-server.test.ts (1)
78-78: LGTM!Also applies to: 101-134
src/shared/agent-hook-listener.ts (1)
25-25: LGTM!Also applies to: 2574-2598, 2711-2731, 2745-2748, 2911-2914, 2958-3008
src/shared/agent-hook-relay.test.ts (1)
30-30: LGTM!Also applies to: 40-40
src/main/agent-hooks/hook-status-session-tabs-invalidation.ts (1)
27-27: LGTM!src/shared/agent-status-types.test.ts (1)
62-73: LGTM!Also applies to: 566-573
src/shared/agent-status-types.ts (1)
18-18: LGTM!Also applies to: 95-96, 175-176, 214-214, 409-409
src/shared/agent-terminal-status-equivalence.test.ts (1)
1-31: LGTM!src/shared/agent-terminal-status-equivalence.ts (1)
1-23: LGTM!src/shared/claude-background-task-status.test.ts (1)
107-165: LGTM!Also applies to: 235-243, 561-565
src/shared/dashboard-snapshot.ts (1)
1-1: LGTM!Also applies to: 38-46, 89-90
src/shared/runtime-types.ts (1)
6-6: LGTM!Also applies to: 739-739, 799-800
src/renderer/src/components/AgentStateDot.test.ts (1)
34-41: LGTM!src/renderer/src/components/AgentStateDot.tsx (1)
2-2: LGTM!Also applies to: 19-19, 40-41, 86-96
src/renderer/src/components/activity/ActivityPrototypePage.test.ts (1)
316-339: LGTM!src/renderer/src/components/activity/ActivityPrototypePage.tsx (1)
14-14: LGTM!Also applies to: 89-97, 145-145, 166-166, 483-501, 838-838, 856-856, 976-976, 1040-1046
src/renderer/src/components/cmd-j/palette-live-status.test.tsx (1)
40-63: LGTM!Also applies to: 128-142, 259-283
src/renderer/src/components/cmd-j/palette-live-status.tsx (1)
12-12: LGTM!Also applies to: 30-40, 93-105, 134-158, 194-197
src/renderer/src/components/dashboard-popout/AgentKanbanCard.test.tsx (1)
13-13: LGTM!Also applies to: 23-26, 274-290
src/renderer/src/components/dashboard-popout/AgentKanbanCard.tsx (1)
89-89: LGTM!src/renderer/src/components/sidebar/StatusIndicator.tsx (1)
2-2: LGTM!Also applies to: 43-54
src/renderer/src/components/sidebar/use-worktree-activity-status.ts (1)
25-32: LGTM!Also applies to: 48-61
src/renderer/src/components/sidebar/use-worktree-activity-statuses.ts (1)
36-36: LGTM!Also applies to: 52-52
src/renderer/src/components/sidebar/worktree-agent-activity-summary.test.ts (1)
19-19: LGTM!Also applies to: 30-30, 172-195
src/renderer/src/components/sidebar/worktree-agent-activity-summary.ts (1)
18-18: LGTM!Also applies to: 29-29, 182-182, 220-229
src/renderer/src/components/sidebar/worktree-card-agent-summary.test.ts (1)
1-58: LGTM!src/renderer/src/components/dashboard-popout/AgentMapWorktreeRingNode.tsx (1)
84-87: LGTM!src/renderer/src/components/dashboard-popout/agent-map-agent-placement.ts (1)
1-4: LGTM!Also applies to: 36-36
src/renderer/src/components/dashboard-popout/agent-map-filter.ts (1)
16-18: LGTM!src/renderer/src/components/dashboard-popout/agent-map-label-declutter.test.ts (1)
11-19: LGTM!src/renderer/src/components/dashboard-popout/agent-map-label-declutter.ts (1)
140-145: LGTM!src/renderer/src/components/sidebar/worktree-card-agent-summary.ts (1)
16-16: LGTM!Also applies to: 34-39, 54-55
src/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsx (1)
39-46: LGTM!Also applies to: 130-134, 217-224, 285-285
src/renderer/src/components/tab-bar/terminal-tab-activity-status.test.ts (1)
65-86: LGTM!Also applies to: 271-273, 302-302
src/renderer/src/components/tab-bar/terminal-tab-activity-status.ts (1)
22-22: LGTM!Also applies to: 79-83, 105-105, 166-166, 175-183, 202-204, 217-223
src/renderer/src/hooks/useIpcEvents.test.ts (1)
6240-6240: LGTM!Also applies to: 6328-6333
src/renderer/src/hooks/useIpcEvents.ts (1)
3141-3141: LGTM!src/renderer/src/components/dashboard-popout/agent-map-layout-metadata.ts (1)
6-6: LGTM!src/renderer/src/components/dashboard-popout/agent-map-layout.test.ts (1)
503-505: LGTM!src/renderer/src/components/dashboard-popout/agent-map-layout.ts (1)
18-18: LGTM!Also applies to: 42-50, 134-134
src/renderer/src/components/dashboard-popout/agent-map-node-metadata.ts (1)
4-4: LGTM!Also applies to: 15-15
src/renderer/src/components/dashboard-popout/agent-map-worktree-active-status.test.ts (1)
6-14: LGTM!Also applies to: 30-33
src/renderer/src/lib/recent-workspace-tab-rows.test.ts (1)
243-264: LGTM!src/renderer/src/lib/recent-workspace-tab-rows.ts (1)
81-98: LGTM!src/renderer/src/lib/worktree-activity-state.test.ts (1)
227-262: LGTM!src/renderer/src/lib/worktree-activity-state.ts (1)
15-15: LGTM!Also applies to: 53-64
src/renderer/src/lib/worktree-status.test.ts (1)
257-290: LGTM!src/renderer/src/lib/worktree-status.ts (1)
14-20: LGTM!Also applies to: 32-32, 58-60, 145-145, 171-173
src/renderer/src/components/dashboard-popout/agent-map.css (1)
376-378: LGTM!src/renderer/src/components/dashboard-popout/dashboard-agent-status-patch.test.ts (1)
89-100: LGTM!src/renderer/src/components/dashboard-popout/dashboard-agent-status-patch.ts (1)
52-56: LGTM!Also applies to: 69-69
src/renderer/src/components/dashboard-popout/useDashboardSnapshot.test.tsx (1)
7-10: LGTM!Also applies to: 243-268
src/renderer/src/components/dashboard/DashboardAgentRow.test.tsx (1)
350-368: LGTM!src/renderer/src/runtime/sync-runtime-graph-agent-status-projection.test.ts (1)
21-21: LGTM!Also applies to: 69-69
src/renderer/src/runtime/sync-runtime-graph.ts (1)
614-614: LGTM!src/renderer/src/runtime/web-session-tabs-sync-remote-status-title-flap.test.ts (1)
518-572: LGTM!src/renderer/src/runtime/web-session-tabs-sync.ts (1)
1229-1231: LGTM!Also applies to: 1302-1313, 1943-1943
src/renderer/src/store/slices/agent-status.test.ts (1)
775-797: LGTM!src/renderer/src/store/slices/agent-status.ts (1)
2114-2114: LGTM!Also applies to: 2197-2226
src/renderer/src/components/dashboard/DashboardAgentRow.tsx (1)
18-24: LGTM!Also applies to: 149-152, 168-170
src/renderer/src/components/dashboard/build-dashboard-snapshot.test.ts (1)
202-217: LGTM!src/renderer/src/components/dashboard/build-dashboard-snapshot.ts (1)
227-236: LGTM!Also applies to: 264-264
src/renderer/src/components/dashboard/dashboard-card-bucket.ts (1)
1-18: LGTM!src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx (1)
248-248: LGTM!Also applies to: 305-318
src/renderer/src/components/native-chat/use-native-chat-hook-status.ts (1)
9-14: LGTM!src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts (1)
404-428: LGTM!src/renderer/src/components/pet/pet-agent-state.test.ts (1)
49-55: LGTM!src/renderer/src/components/pet/pet-agent-state.ts (1)
56-56: LGTM!src/renderer/src/components/sidebar/StatusIndicator.test.ts (1)
34-41: LGTM!
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ab2ab196-3279-4b0b-a4c5-c481ff42a9a9
📥 Commits
Reviewing files that changed from the base of the PR and between 889dd4c and ca9cb830831a84ab388ce86670deb1dcf01f8bf0.
📒 Files selected for processing (88)
mobile/src/components/AgentSpinner.tsxmobile/src/components/AgentStateDot.tsxmobile/src/components/WorktreeListRow.test.tsmobile/src/components/WorktreeListRow.tsxmobile/src/components/agent-monitoring-indicators.test.tsmobile/src/session/use-mobile-native-chat-controller.test.tsmobile/src/session/use-mobile-native-chat-controller.tsmobile/src/worktree/agent-row-display.test.tsmobile/src/worktree/agent-row-display.tsmobile/src/worktree/workspace-list-types.tsmobile/src/worktree/worktree-list-snapshot.test.tsmobile/src/worktree/worktree-list-snapshot.tssrc/main/agent-hooks/hook-status-session-tabs-invalidation.test.tssrc/main/agent-hooks/hook-status-session-tabs-invalidation.tssrc/main/agent-hooks/server.test.tssrc/main/agent-hooks/server.tssrc/main/ipc/dashboard-payload-validation.test.tssrc/main/ipc/dashboard-payload-validation.tssrc/main/runtime/orca-runtime.test.tssrc/main/runtime/orca-runtime.tssrc/main/ssh/ssh-relay-session-agent-hooks.integration.test.tssrc/relay/agent-hook-server.test.tssrc/renderer/src/components/AgentStateDot.test.tssrc/renderer/src/components/AgentStateDot.tsxsrc/renderer/src/components/activity/ActivityPrototypePage.test.tssrc/renderer/src/components/activity/ActivityPrototypePage.tsxsrc/renderer/src/components/cmd-j/palette-live-status.test.tsxsrc/renderer/src/components/cmd-j/palette-live-status.tsxsrc/renderer/src/components/dashboard-popout/AgentKanbanCard.test.tsxsrc/renderer/src/components/dashboard-popout/AgentKanbanCard.tsxsrc/renderer/src/components/dashboard-popout/AgentMapWorktreeRingNode.tsxsrc/renderer/src/components/dashboard-popout/agent-map-agent-placement.tssrc/renderer/src/components/dashboard-popout/agent-map-filter.tssrc/renderer/src/components/dashboard-popout/agent-map-label-declutter.test.tssrc/renderer/src/components/dashboard-popout/agent-map-label-declutter.tssrc/renderer/src/components/dashboard-popout/agent-map-layout-metadata.tssrc/renderer/src/components/dashboard-popout/agent-map-layout.test.tssrc/renderer/src/components/dashboard-popout/agent-map-layout.tssrc/renderer/src/components/dashboard-popout/agent-map-node-metadata.tssrc/renderer/src/components/dashboard-popout/agent-map-worktree-active-status.test.tssrc/renderer/src/components/dashboard-popout/agent-map.csssrc/renderer/src/components/dashboard-popout/dashboard-agent-status-patch.test.tssrc/renderer/src/components/dashboard-popout/dashboard-agent-status-patch.tssrc/renderer/src/components/dashboard-popout/useDashboardSnapshot.test.tsxsrc/renderer/src/components/dashboard/DashboardAgentRow.test.tsxsrc/renderer/src/components/dashboard/DashboardAgentRow.tsxsrc/renderer/src/components/dashboard/build-dashboard-snapshot.test.tssrc/renderer/src/components/dashboard/build-dashboard-snapshot.tssrc/renderer/src/components/dashboard/dashboard-card-bucket.tssrc/renderer/src/components/editor/ReviewNotesSendMenuContent.tsxsrc/renderer/src/components/native-chat/use-native-chat-hook-status.tssrc/renderer/src/components/native-chat/use-native-chat-live-session.test.tssrc/renderer/src/components/pet/pet-agent-state.test.tssrc/renderer/src/components/pet/pet-agent-state.tssrc/renderer/src/components/sidebar/StatusIndicator.test.tssrc/renderer/src/components/sidebar/StatusIndicator.tsxsrc/renderer/src/components/sidebar/use-worktree-activity-status.tssrc/renderer/src/components/sidebar/use-worktree-activity-statuses.tssrc/renderer/src/components/sidebar/worktree-agent-activity-summary.test.tssrc/renderer/src/components/sidebar/worktree-agent-activity-summary.tssrc/renderer/src/components/sidebar/worktree-card-agent-summary.test.tssrc/renderer/src/components/sidebar/worktree-card-agent-summary.tssrc/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsxsrc/renderer/src/components/tab-bar/terminal-tab-activity-status.test.tssrc/renderer/src/components/tab-bar/terminal-tab-activity-status.tssrc/renderer/src/hooks/useIpcEvents.test.tssrc/renderer/src/hooks/useIpcEvents.tssrc/renderer/src/lib/recent-workspace-tab-rows.test.tssrc/renderer/src/lib/recent-workspace-tab-rows.tssrc/renderer/src/lib/worktree-activity-state.test.tssrc/renderer/src/lib/worktree-activity-state.tssrc/renderer/src/lib/worktree-status.test.tssrc/renderer/src/lib/worktree-status.tssrc/renderer/src/runtime/sync-runtime-graph-agent-status-projection.test.tssrc/renderer/src/runtime/sync-runtime-graph.tssrc/renderer/src/runtime/web-session-tabs-sync-remote-status-title-flap.test.tssrc/renderer/src/runtime/web-session-tabs-sync.tssrc/renderer/src/store/slices/agent-status.test.tssrc/renderer/src/store/slices/agent-status.tssrc/shared/agent-hook-listener.tssrc/shared/agent-hook-relay.test.tssrc/shared/agent-status-types.test.tssrc/shared/agent-status-types.tssrc/shared/agent-terminal-status-equivalence.test.tssrc/shared/agent-terminal-status-equivalence.tssrc/shared/claude-background-task-status.test.tssrc/shared/dashboard-snapshot.tssrc/shared/runtime-types.ts
Replaces the yellow Radio glyph from #14205 with a static dot in a new --agent-monitoring token (#8abeb7), defined once for light and once for dark like --workspace-status-done, so the status keeps its identity when the theme flips. Deliberately a fixed UI value: it never reads terminal theme state at runtime. Adds the turn-boundary notification pins. The monitoring predicate and the turnCompletedAt stamp are computed from the same "lead said done but the pane resolves to working" expression, so a rename can silently drop the stamp and kill a completion notification that works today with nothing else going red.
Brennan chose #14205's original treatment over the turquoise dot, so the visual goes back to nwparker's: lucide Radio in text-yellow-500 across the sidebar, dashboard dot, cmd-j palette and agent-map ring. Reverts only the visual surface. The turn-boundary notification pins stay — the monitoring predicate and the turnCompletedAt stamp share an expression, so a rename can silently drop the stamp and kill a completion that works today with nothing else going red. The --agent-monitoring token is removed with its last consumer rather than left dead in main.css.
…4205) (#16201) * feat(agents): distinguish Claude background monitoring Adds an optional `workingMode: 'monitoring'` discriminator for a Claude session whose lead turn finished but which still has background shell tasks or session crons registered. The wire state stays `working`, so older peers that never read the field keep rendering Working. (cherry picked from commit d5d54b4) Rebased onto current main (554 commits of drift) by Brennan Benson; conflicts resolved by keeping both sides where main and this branch made independent additions to the same construct. * fix(sidebar): keep monitoring status visible (cherry picked from commit fd6b386) * test(agents): cover Claude monitoring drain (cherry picked from commit ce4d61e) * test(mobile): avoid unresolved renderer test type (cherry picked from commit bbcfa35) * feat(agents): render Claude monitoring as a static turquoise dot Replaces the yellow Radio glyph from #14205 with a static dot in a new --agent-monitoring token (#8abeb7), defined once for light and once for dark like --workspace-status-done, so the status keeps its identity when the theme flips. Deliberately a fixed UI value: it never reads terminal theme state at runtime. Adds the turn-boundary notification pins. The monitoring predicate and the turnCompletedAt stamp are computed from the same "lead said done but the pane resolves to working" expression, so a rename can silently drop the stamp and kill a completion notification that works today with nothing else going red. * revert(agents): restore the yellow Radio glyph for monitoring Brennan chose #14205's original treatment over the turquoise dot, so the visual goes back to nwparker's: lucide Radio in text-yellow-500 across the sidebar, dashboard dot, cmd-j palette and agent-map ring. Reverts only the visual surface. The turn-boundary notification pins stay — the monitoring predicate and the turnCompletedAt stamp share an expression, so a rename can silently drop the stamp and kill a completion that works today with nothing else going red. The --agent-monitoring token is removed with its last consumer rather than left dead in main.css. --------- Co-authored-by: Neil <[email protected]>
…ablyai#14205) (stablyai#16201) * feat(agents): distinguish Claude background monitoring Adds an optional `workingMode: 'monitoring'` discriminator for a Claude session whose lead turn finished but which still has background shell tasks or session crons registered. The wire state stays `working`, so older peers that never read the field keep rendering Working. (cherry picked from commit d5d54b4) Rebased onto current main (554 commits of drift) by Brennan Benson; conflicts resolved by keeping both sides where main and this branch made independent additions to the same construct. * fix(sidebar): keep monitoring status visible (cherry picked from commit fd6b386) * test(agents): cover Claude monitoring drain (cherry picked from commit ce4d61e) * test(mobile): avoid unresolved renderer test type (cherry picked from commit bbcfa35) * feat(agents): render Claude monitoring as a static turquoise dot Replaces the yellow Radio glyph from stablyai#14205 with a static dot in a new --agent-monitoring token (#8abeb7), defined once for light and once for dark like --workspace-status-done, so the status keeps its identity when the theme flips. Deliberately a fixed UI value: it never reads terminal theme state at runtime. Adds the turn-boundary notification pins. The monitoring predicate and the turnCompletedAt stamp are computed from the same "lead said done but the pane resolves to working" expression, so a rename can silently drop the stamp and kill a completion notification that works today with nothing else going red. * revert(agents): restore the yellow Radio glyph for monitoring Brennan chose stablyai#14205's original treatment over the turquoise dot, so the visual goes back to nwparker's: lucide Radio in text-yellow-500 across the sidebar, dashboard dot, cmd-j palette and agent-map ring. Reverts only the visual surface. The turn-boundary notification pins stay — the monitoring predicate and the turnCompletedAt stamp share an expression, so a rename can silently drop the stamp and kill a completion that works today with nothing else going red. The --agent-monitoring token is removed with its last consumer rather than left dead in main.css. --------- Co-authored-by: Neil <[email protected]> (cherry picked from commit ec4687c)
…ablyai#14205) (stablyai#16201) * feat(agents): distinguish Claude background monitoring Adds an optional `workingMode: 'monitoring'` discriminator for a Claude session whose lead turn finished but which still has background shell tasks or session crons registered. The wire state stays `working`, so older peers that never read the field keep rendering Working. (cherry picked from commit d5d54b4) Rebased onto current main (554 commits of drift) by Brennan Benson; conflicts resolved by keeping both sides where main and this branch made independent additions to the same construct. * fix(sidebar): keep monitoring status visible (cherry picked from commit fd6b386) * test(agents): cover Claude monitoring drain (cherry picked from commit ce4d61e) * test(mobile): avoid unresolved renderer test type (cherry picked from commit bbcfa35) * feat(agents): render Claude monitoring as a static turquoise dot Replaces the yellow Radio glyph from stablyai#14205 with a static dot in a new --agent-monitoring token (#8abeb7), defined once for light and once for dark like --workspace-status-done, so the status keeps its identity when the theme flips. Deliberately a fixed UI value: it never reads terminal theme state at runtime. Adds the turn-boundary notification pins. The monitoring predicate and the turnCompletedAt stamp are computed from the same "lead said done but the pane resolves to working" expression, so a rename can silently drop the stamp and kill a completion notification that works today with nothing else going red. * revert(agents): restore the yellow Radio glyph for monitoring Brennan chose stablyai#14205's original treatment over the turquoise dot, so the visual goes back to nwparker's: lucide Radio in text-yellow-500 across the sidebar, dashboard dot, cmd-j palette and agent-map ring. Reverts only the visual surface. The turn-boundary notification pins stay — the monitoring predicate and the turnCompletedAt stamp share an expression, so a rename can silently drop the stamp and kill a completion that works today with nothing else going red. The --agent-monitoring token is removed with its last consumer rather than left dead in main.css. --------- Co-authored-by: Neil <[email protected]>
…ablyai#14205) (stablyai#16201) * feat(agents): distinguish Claude background monitoring Adds an optional `workingMode: 'monitoring'` discriminator for a Claude session whose lead turn finished but which still has background shell tasks or session crons registered. The wire state stays `working`, so older peers that never read the field keep rendering Working. (cherry picked from commit d5d54b4) Rebased onto current main (554 commits of drift) by Brennan Benson; conflicts resolved by keeping both sides where main and this branch made independent additions to the same construct. * fix(sidebar): keep monitoring status visible (cherry picked from commit fd6b386) * test(agents): cover Claude monitoring drain (cherry picked from commit ce4d61e) * test(mobile): avoid unresolved renderer test type (cherry picked from commit bbcfa35) * feat(agents): render Claude monitoring as a static turquoise dot Replaces the yellow Radio glyph from stablyai#14205 with a static dot in a new --agent-monitoring token (#8abeb7), defined once for light and once for dark like --workspace-status-done, so the status keeps its identity when the theme flips. Deliberately a fixed UI value: it never reads terminal theme state at runtime. Adds the turn-boundary notification pins. The monitoring predicate and the turnCompletedAt stamp are computed from the same "lead said done but the pane resolves to working" expression, so a rename can silently drop the stamp and kill a completion notification that works today with nothing else going red. * revert(agents): restore the yellow Radio glyph for monitoring Brennan chose stablyai#14205's original treatment over the turquoise dot, so the visual goes back to nwparker's: lucide Radio in text-yellow-500 across the sidebar, dashboard dot, cmd-j palette and agent-map ring. Reverts only the visual surface. The turn-boundary notification pins stay — the monitoring predicate and the turnCompletedAt stamp share an expression, so a rename can silently drop the stamp and kill a completion that works today with nothing else going red. The --agent-monitoring token is removed with its last consumer rather than left dead in main.css. --------- Co-authored-by: Neil <[email protected]>
ELI5
Orca previously showed Claude's passive background-task monitoring with the same spinner as active work. It now shows a static "Monitoring background tasks" status, while genuine foreground work keeps the spinner.
What Changed
workingMode: 'monitoring'status for Claude sessions whose lead turn has finished but still have background shell tasks or session crons.Status priority is:
The wire state remains
working;workingModeis optional and additive. Older peers safely ignore it and continue showing Working. No new stream opcode or required field was introduced.Why
A spinner implies Claude is actively thinking or acting. Background monitors can remain alive after the foreground turn ends, making idle sessions appear busy. The static monitoring state communicates that Claude is still watching background work without overstating activity.
Linked Issue
N/A - user-requested change; no linked issue.
Visual Proof
Monitoring without a foreground-work spinner
Monitoring beside active Working
monitoring-vs-working-final2.webm
Monitoring drains when background work completes
Testing
Manual verification on macOS used the Electron app through Playwright CDP with real Claude Code 2.1.229 hook traffic:
Working -> Monitoring -> Donefor a real background task.Automated verification:
v1.4.181.git diff --checkpassed.AI Disclosure
OpenAI Codex (GPT-5) assisted with research, implementation, tests, review, and PR drafting. Claude Code 2.1.229 generated real hook traffic for end-to-end verification.
Review
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Author