Skip to content

feat(orchestration): live activity line in Mission Control Spawned Work rows - #32

Merged
zaridan merged 1 commit into
mainfrom
zaridan/feat-orch-spawned-work-activity-line
Jun 24, 2026
Merged

feat(orchestration): live activity line in Mission Control Spawned Work rows#32
zaridan merged 1 commit into
mainfrom
zaridan/feat-orch-spawned-work-activity-line

Conversation

@zaridan

@zaridan zaridan commented Jun 24, 2026

Copy link
Copy Markdown
Owner

What

Adds a live activity line beneath each worker name in the Orchestrator Mission Control "Spawned Work" rows, so a worker row shows what its agent is currently doing — not just a status dot.

Why

Mirrors the activity line DashboardAgentRow already renders elsewhere in the app. Previously a spawned-work row showed only the agent state dot + worker name, giving no at-a-glance signal of the agent's current activity.

How

  • Extracted selectFreshestWorktreeAgentEntry from deriveWorktreeAgentDotState in worktree-agent-dot-state.ts so the dot and the activity line derive from one rule (the freshest agent-status entry among a worktree's tabs), instead of duplicated logic that could drift.
  • Added selectWorktreeAgentActivityText (worktree-agent-activity-text.ts): returns the freshest agent's orchestration label / prompt via getAgentRowPrimaryText, falls back to the state label when the agent is live but reported no prompt, and returns null when no agent has reported (so the row omits the line rather than showing a placeholder).
  • OrchestratorMissionControl.tsx renders the worker name + truncated activity line (with title tooltip) in the row header.

Tests

New OrchestratorMissionControl.spawned-activity.test.tsx covers: prompt text rendered under the worker name, state-label fallback on empty prompt, and the line omitted when no agent has reported.

Typecheck, full pnpm test (20498 passed), oxlint on changed files, and the electron-vite build all pass.

🤖 Generated with Claude Code

…rk rows

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zaridan
zaridan merged commit 2d59184 into main Jun 24, 2026
1 check passed
@zaridan
zaridan deleted the zaridan/feat-orch-spawned-work-activity-line branch June 24, 2026 17:54
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