Skip to content

feat(agents): distinguish Claude background monitoring - #14205

Closed
nwparker wants to merge 4 commits into
stablyai:mainfrom
nwparker:nwparker/claude-discriminate-orangutan
Closed

nwparker wants to merge 4 commits into
stablyai:mainfrom
nwparker:nwparker/claude-discriminate-orangutan

Conversation

@nwparker

@nwparker nwparker commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Added an optional workingMode: 'monitoring' status for Claude sessions whose lead turn has finished but still have background shell tasks or session crons.
  • Applied the status across desktop, mobile, dashboards, tabs, activity views, native chat, pet state, persistence, IPC, SSH/relay, and paired clients.
  • Kept monitoring sessions in the Working dashboard bucket while settling foreground-only animations and controls.
  • Added regression coverage for foreground priority, inventory-less hooks, authoritative task draining, persistence, and relay behavior.

Status priority is:

  1. Waiting or permission required
  2. Foreground Working
  3. Monitoring background tasks
  4. Done

The wire state remains working; workingMode is 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

Claude monitoring background tasks

Monitoring beside active Working

Claude Monitoring and Working states shown together

monitoring-vs-working-final2.webm

Monitoring drains when background work completes

Claude monitoring state drained

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Manual verification on macOS used the Electron app through Playwright CDP with real Claude Code 2.1.229 hook traffic:

  • Observed Working -> Monitoring -> Done for a real background task.
  • Confirmed Monitoring has no spinner while simultaneous foreground work retains one.
  • Confirmed the sidebar label begins with "Monitoring background tasks".
  • Confirmed authoritative empty task inventories drain Monitoring with no remaining activity spinner.

Automated verification:

  • Root suite: 50,951 passed, 117 skipped.
  • Mobile suite: 3,433 passed, 3 skipped.
  • Post-rebase focused coverage: 2,011 passed, 1 skipped across 37 files, including hooks, runtime/IPC, relay/SSH, renderer, and mobile.
  • Cross-version compatibility: 35/35 against v1.4.181.
  • Root/mobile typechecks, lint, formatting, max-lines ratchet, React Doctor, and git diff --check passed.
  • Electron development bundle compiled successfully; CI will run the production build.
  • Linux and Windows were not manually exercised; platform-neutral status logic and SSH/relay behavior are covered by automated tests.

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

  • Security: no new execution, authentication, or permission surface.
  • Cross-platform: no platform-specific shortcuts or paths introduced.
  • SSH/remote: optional status propagation is covered through relay tests.
  • Mobile/backwards compatibility: updated and tested; legacy peers retain Working behavior.
  • Performance: status is derived from existing hook events without new polling.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Author

@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a64713bf-2576-4435-8d03-d679829a534d

📥 Commits

Reviewing files that changed from the base of the PR and between ca9cb830831a84ab388ce86670deb1dcf01f8bf0 and bbcfa35.

📒 Files selected for processing (1)
  • mobile/src/components/agent-monitoring-indicators.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • mobile/src/components/agent-monitoring-indicators.test.ts

📝 Walkthrough

Walkthrough

The change adds workingMode: 'monitoring' to agent status contracts and propagates it through hooks, runtime aggregation, relays, synchronization, snapshots, and dashboard validation. Runtime and renderer status logic distinguish background monitoring from foreground work. Desktop and mobile interfaces render a static yellow radio indicator with the “Monitoring background tasks” label instead of an active spinner. Tests cover propagation, precedence, freshness, persistence, synchronization, and rendering.

Mergeability Score: 🔵 Low · up to bbcfa

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the change, rationale, visual proof, testing, compatibility, and checklist, but it omits the required linked issue. Add a valid linked issue reference in the Linked Issue section instead of “N/A.”
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: distinguishing Claude background monitoring from active work.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker force-pushed the nwparker/claude-discriminate-orangutan branch from ca9cb83 to bbcfa35 Compare August 13, 2026 05:18

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/main/runtime/orca-runtime.ts (1)

18222-18257: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Verify the evidence-matching fallback and consider extracting the classification block.

runtimeWorkingTerminalEvidenceMatchesSource falls back to a tabId-only comparison when both evidence.paneKey and evidence.ptyId fail to match source. Leaf-based evidence always carries a non-null paneKey (makeRuntimePaneKey never returns null), so this fallback only activates for PTY-loop evidence with a null pty.paneKey combined with a hook-only monitoring source that has no ptyId (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 shared tabId, and the workspace would show monitoring instead of working. 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 to addRuntimeWorkingTerminalEvidence and runtimeWorkingTerminalEvidenceMatchesSource) so it can be unit tested independently of attachAgentRowsToSummaries.

🔇 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 terminalStatusPayloadMatchesHook argument 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 restore monitoring onto an OSC row whose content actually changed, or block a valid restore.

Confirm the parameter order against src/shared/agent-terminal-status-equivalence.ts before 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.tsx
  • mobile/src/components/AgentStateDot.tsx
  • mobile/src/components/WorktreeListRow.test.ts
  • mobile/src/components/WorktreeListRow.tsx
  • mobile/src/components/agent-monitoring-indicators.test.ts
  • mobile/src/session/use-mobile-native-chat-controller.test.ts
  • mobile/src/session/use-mobile-native-chat-controller.ts
  • mobile/src/worktree/agent-row-display.test.ts
  • mobile/src/worktree/agent-row-display.ts
  • mobile/src/worktree/workspace-list-types.ts
  • mobile/src/worktree/worktree-list-snapshot.test.ts
  • mobile/src/worktree/worktree-list-snapshot.ts
  • src/main/agent-hooks/hook-status-session-tabs-invalidation.test.ts
  • src/main/agent-hooks/hook-status-session-tabs-invalidation.ts
  • src/main/agent-hooks/server.test.ts
  • src/main/agent-hooks/server.ts
  • src/main/ipc/dashboard-payload-validation.test.ts
  • src/main/ipc/dashboard-payload-validation.ts
  • src/main/runtime/orca-runtime.test.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/ssh/ssh-relay-session-agent-hooks.integration.test.ts
  • src/relay/agent-hook-server.test.ts
  • src/renderer/src/components/AgentStateDot.test.ts
  • src/renderer/src/components/AgentStateDot.tsx
  • src/renderer/src/components/activity/ActivityPrototypePage.test.ts
  • src/renderer/src/components/activity/ActivityPrototypePage.tsx
  • src/renderer/src/components/cmd-j/palette-live-status.test.tsx
  • src/renderer/src/components/cmd-j/palette-live-status.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanCard.test.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanCard.tsx
  • src/renderer/src/components/dashboard-popout/AgentMapWorktreeRingNode.tsx
  • src/renderer/src/components/dashboard-popout/agent-map-agent-placement.ts
  • src/renderer/src/components/dashboard-popout/agent-map-filter.ts
  • src/renderer/src/components/dashboard-popout/agent-map-label-declutter.test.ts
  • src/renderer/src/components/dashboard-popout/agent-map-label-declutter.ts
  • src/renderer/src/components/dashboard-popout/agent-map-layout-metadata.ts
  • src/renderer/src/components/dashboard-popout/agent-map-layout.test.ts
  • src/renderer/src/components/dashboard-popout/agent-map-layout.ts
  • src/renderer/src/components/dashboard-popout/agent-map-node-metadata.ts
  • src/renderer/src/components/dashboard-popout/agent-map-worktree-active-status.test.ts
  • src/renderer/src/components/dashboard-popout/agent-map.css
  • src/renderer/src/components/dashboard-popout/dashboard-agent-status-patch.test.ts
  • src/renderer/src/components/dashboard-popout/dashboard-agent-status-patch.ts
  • src/renderer/src/components/dashboard-popout/useDashboardSnapshot.test.tsx
  • src/renderer/src/components/dashboard/DashboardAgentRow.test.tsx
  • src/renderer/src/components/dashboard/DashboardAgentRow.tsx
  • src/renderer/src/components/dashboard/build-dashboard-snapshot.test.ts
  • src/renderer/src/components/dashboard/build-dashboard-snapshot.ts
  • src/renderer/src/components/dashboard/dashboard-card-bucket.ts
  • src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx
  • src/renderer/src/components/native-chat/use-native-chat-hook-status.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts
  • src/renderer/src/components/pet/pet-agent-state.test.ts
  • src/renderer/src/components/pet/pet-agent-state.ts
  • src/renderer/src/components/sidebar/StatusIndicator.test.ts
  • src/renderer/src/components/sidebar/StatusIndicator.tsx
  • src/renderer/src/components/sidebar/use-worktree-activity-status.ts
  • src/renderer/src/components/sidebar/use-worktree-activity-statuses.ts
  • src/renderer/src/components/sidebar/worktree-agent-activity-summary.test.ts
  • src/renderer/src/components/sidebar/worktree-agent-activity-summary.ts
  • src/renderer/src/components/sidebar/worktree-card-agent-summary.test.ts
  • src/renderer/src/components/sidebar/worktree-card-agent-summary.ts
  • src/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsx
  • src/renderer/src/components/tab-bar/terminal-tab-activity-status.test.ts
  • src/renderer/src/components/tab-bar/terminal-tab-activity-status.ts
  • src/renderer/src/hooks/useIpcEvents.test.ts
  • src/renderer/src/hooks/useIpcEvents.ts
  • src/renderer/src/lib/recent-workspace-tab-rows.test.ts
  • src/renderer/src/lib/recent-workspace-tab-rows.ts
  • src/renderer/src/lib/worktree-activity-state.test.ts
  • src/renderer/src/lib/worktree-activity-state.ts
  • src/renderer/src/lib/worktree-status.test.ts
  • src/renderer/src/lib/worktree-status.ts
  • src/renderer/src/runtime/sync-runtime-graph-agent-status-projection.test.ts
  • src/renderer/src/runtime/sync-runtime-graph.ts
  • src/renderer/src/runtime/web-session-tabs-sync-remote-status-title-flap.test.ts
  • src/renderer/src/runtime/web-session-tabs-sync.ts
  • src/renderer/src/store/slices/agent-status.test.ts
  • src/renderer/src/store/slices/agent-status.ts
  • src/shared/agent-hook-listener.ts
  • src/shared/agent-hook-relay.test.ts
  • src/shared/agent-status-types.test.ts
  • src/shared/agent-status-types.ts
  • src/shared/agent-terminal-status-equivalence.test.ts
  • src/shared/agent-terminal-status-equivalence.ts
  • src/shared/claude-background-task-status.test.ts
  • src/shared/dashboard-snapshot.ts
  • src/shared/runtime-types.ts

brennanb2025 added a commit that referenced this pull request Aug 24, 2026
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.
brennanb2025 added a commit that referenced this pull request Aug 24, 2026
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.
brennanb2025 added a commit that referenced this pull request Aug 24, 2026
…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]>
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 25, 2026
…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)
dallascrilley pushed a commit to dallascrilley/orca that referenced this pull request Aug 27, 2026
…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]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant