Skip to content

Show who each agent works with in a panel on its chat or terminal - #34891

Merged
brennanb2025 merged 189 commits into
mainfrom
brennanb2025/crew-panel-ui
Nov 2, 2026
Merged

brennanb2025 merged 189 commits into
mainfrom
brennanb2025/crew-panel-ui

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1893 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1891
Prod 55 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3647 $\color{#cf222e}{\Huge{\mathbf{−}}}$​359 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3288

Problem and change

When agents work together, the person watching can't see who manages whom, what each one is doing, or which one is waiting on them. This PR adds an Orchestration panel to each agent's chat or terminal pane.

Experimental and off by default. Turn it on in Settings → Experimental → Orchestration panel ("Shows which agents each agent is working with, beside its chat or terminal."). The switch applies live, with no restart. While it is off, nothing of the panel shows or runs; see "Effect with the setting off" below.

Closed: a small tab sits on the pane's right edge, just under the pane's title buttons. It shows the panel icon, the lineage icon with the number of workers (only when there are any), then one group per status in the order needs you, working, idle, failed. Each group shows the sidebar's own status icon, up to three overlapping agent icons and "+n" for the rest. The tooltip and accessible name read "Orchestration: 3 workers, 1 needs you, 1 working, 1 idle", with proper singular and plural forms.

Open: the panel lists Managed by, Managing and Talking with. Each row is one card: the sidebar status icon and agent icon, the task in plain words (or the agent's name when there is no task), and Details, Open and More buttons. The second line is the agent's latest message with its age ("15h ago"), or "Waiting for you · " in amber. Within each section, the most recent message comes first. Details shows the task, the latest message or question, and its direction. The panel starts directly under the tab bar and the pane's title buttons, which stay usable, and the rows scroll. In chats, the panel ends above the composer, so the composer and Send are never covered. Escape closes it.

Mention actions are added by #34836. Answer, Show messages and Stop are follow-up work, outside this PR.

Effect with the setting off

Every change in this PR, for a user who has not turned the setting on:

Change Effect with the setting off Why
The panel (tab, overlay, rows, menus) in native chats, terminal-hosted chat views and terminal panes None: nothing mounts Gated where it mounts (the chat's transcript frame and the terminal pane portals); its code loads only on first mount
The panel's read of who works with whom (live subscription, terminal identity lookup) None: no query, subscription, timer or IPC starts Starts only inside the mounted panel
Which messages a row previews (host read model query) None Only the panel's subscription runs it
Settings → Experimental → Orchestration panel, and its search entry A new row, switched off The opt-in itself
One settings read per chat frame and terminal surface One boolean store selector each; nothing re-renders while it stays off Intended: lets the switch apply live without a restart
A wrapper around the native chat transcript No visible or layout change Intended: same flex box as the element it wraps; keeps the transcript mounted when the setting changes
Terminal drag strip rule for an open panel None The rule matches only an open panel
Message card avatar and its sender lookup Main's code, unchanged The panel has its own list lookup
Web client subscription code, split into its own files for the panel's subscription Same behavior as main Ordinary subscriptions take main's path; the panel-only branches are unused unless the panel subscribes
Shared code the panel reuses (split shortcut, Stop, Copy terminal ID, Open toasts, agent icon class names) Same behavior Moved code, or an optional parameter existing callers don't pass
Four plural strings in the startup string catalog Negligible Intended: the catalog check requires plural forms there

What a row's second line shows

Only an agent's own words. Orca's failure notices (for example "Worker term_… ended its turn without sending worker_done … orchestration send --to dispatch:ctx_…"), empty setup receipts and lifecycle messages Orca rewrote ("Orca rejected this worker_done: …") are skipped, and the row shows the agent's previous message. A row whose agent hasn't said anything has no second line; worker launch stages ("input accepted") are not shown anywhere.

Intended: a message sent with only a subject and no body isn't shown either; Orca's setup receipts have no body, and agents are told to always send one. Intended: an agent's own "Blocked: …" escalation is skipped too. Orca's notices are stored as the worker's escalation, with nothing that tells them apart, and that message still reaches the coordinator's inbox. The coordinator accepted this trade-off; a design panel settled the rule for the other two shapes.

Design and compatibility

This uses #34890's read-only host view and the existing navigation, menu and status components; the status icons are exactly the sidebar's. The common pattern selects relationships and sender identity from canonical records, and display readiness never decides whether an action is allowed. An older host without this support keeps its existing launch path and shows no panel.

Intended: the open panel overlays the transcript or terminal output under it (320px wide); it does not reflow the content. Known on main and not changed here: in a chromeless terminal-hosted chat, the chat's cover hides the pane's drag strip.

The shared menu primitives are unpatched. Intended, accepted Windows limitation tracked in STA-13079: after a disabled menu item, the first outside click can be ignored; the second closes it. Escape and focus behavior are still required.

Validation

The setting: a native chat test turns it off, on and off again and checks that nothing of the panel mounts and no crew subscription starts while it is off, that the panel appears live when it is turned on without replacing the transcript, and that the subscription is released when it is turned off. A terminal test does the same for every pane, including that no terminal identity lookup or crew read runs while it is off. A loading test checks that a failed load leaves the pane as it was and that the next mount loads again. Main's own message-card and store fan-out tests cover the restored avatar lookup unchanged.

Real-app run on a fresh profile with a Claude native chat that dispatched a Codex terminal worker: with the setting off there was no panel in the coordinator chat, the worker terminal or the worker's chat view; Settings → Experimental showed "Orchestration panel" off, and settings search found it; turning it on showed the panel live in all three, with the composer clear and the draft kept; turning it off hid it live. Screenshots are in the review status comment.

Renderer tests cover the closed tab's grouping and plural counts, most-recent-first sorting, live status from the sidebar's sources (with one store subscription and a per-row render contract), panel mounting on chat and terminal panes, Escape and collapse, menus and Open. A read-model test feeds a real recorded Orca notice, an agent's own escalation, an empty setup receipt and a rejected report, and checks the row keeps the agent's real message; the query-plan test checks the message indexes still apply.

Real-app screenshot runs with Claude and Codex agents (through #34836's builds, which contain this head) checked: the closed tab and open panel; both chat views with the composer clear; a 50px transcript; the latest line after a real worker-stop notice; split panes and title-strip buttons; the find bar; and no "crew" wording. Screenshots are in the review status comment.

Component fixtures: orchestration-crew/OrchestrationCrewPanel with 2, 5 and 10 workers, a manager plus 3, managed-by only, peer only and a wide native chat, each collapsed and expanded.

Main's lineage projection only walked terminal panes, so workers running
in the chat UI never got a parent link and listed flat in the sidebar.
It now also projects chat workers, keyed by their visible chat row, and
resolves a chat creator or coordinator to that chat's visible row
instead of its handle or private mailbox pane key.
@brennanb2025
brennanb2025 force-pushed the brennanb2025/crew-panel-ui branch from b80bb4b to 7d1cabf Compare October 28, 2026 12:11
@brennanb2025
brennanb2025 marked this pull request as ready for review October 28, 2026 17:44
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c068f7a2-a850-41ff-8aeb-b5be7da3c6f6
Commits

Reviewing files that changed from the base of the PR and between a572975 and d252a4d.

Files selected for processing: 1
  • src/renderer/src/components/orchestration-crew/NativeChatCrewPanel.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

Walkthrough

The change adds crew subscriptions for local and remote runtimes, derives crew-row status and agent presentation, and renders crew panels in native chat and terminal panes. It adds panel interactions for disclosure, menus, focus, and opening crew agents. Tests cover subscription lifecycle, panel behavior, and pane integration.

Merge Risk: Moderate · up to d252a

Crew panels can hide current blockers and subject-only conversations, while localized users may see English failure messages; these issues should be resolved before merge.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 17.65% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description is detailed and covers the problem, the change, the setting-off effect, design and compatibility, and validation. Its structure does not follow the repository template. The template re… Add or complete these template sections: (1) an ELI5 summary in plain language; (2) a 'What Changed' section with the before and after behavior and the mechanism; (3) a 'Why' section that explains the chosen approach over alternatives; (4) …
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main user-facing change: a panel shows each agent's working relationships in chat or terminal.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 17.65% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 68 functions across 53 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description is detailed and covers the problem, the change, the setting-off effect, design and compatibility, and validation. Its structure does not follow the repository template. The template requires ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. The description has no ELI5, no 'Linked Issue' with a 'Fixes #' line, no explicit Risk level or rollback plan, no testing checklist boxes, and no AI Disclosure or Agent skill upstream boundary section. The Visual Proof section is missing: it refers to screenshots in a 'review status comment' rather than attaching BEFORE and AFTER visuals. The description does state a Validation section and an 'Effect with the setting off' table, which partly cover Testing and Risk. The description also depends on other PRs (#34890, #34836, #36663) that it does not link as a 'Fixes' issue.

Resolution

Add or complete these template sections: (1) an ELI5 summary in plain language; (2) a 'What Changed' section with the before and after behavior and the mechanism; (3) a 'Why' section that explains the chosen approach over alternatives; (4) a 'Linked Issue' line with an actual issue reference (for example 'Fixes #N'), since outside contributors require one; (5) 'Visual Proof' with BEFORE and AFTER screenshots or videos attached directly to the PR, not only in a status comment; (6) a 'Testing' section with the platforms actually tested (macOS, Linux, Windows, SSH) and the checkboxes marked; (7) a 'Risk' section with a risk Level (Low, Medium, or High), the riskiest part, affected users, and how to back out the change; (8) the 'AI Disclosure' section, filled in unless the author is a StablyAI team member; (9) the 'Agent skill upstream boundary' checkbox; (10) the Checklist items confirmed. Also state which dependent PRs must merge first.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8adc8c8e-8a8c-4f0b-9924-16f52cb0031c
Commits

Reviewing files that changed from the base of the PR and between 8538b07 and 3a59d5b.

Files selected for processing: 55
  • src/main/runtime/orchestration/crew/crew-mounted-render.test-fixture.ts
  • src/renderer/src/assets/terminal.css
  • src/renderer/src/components/AgentMessageAvatar.tsx
  • src/renderer/src/components/native-chat/NativeChatAgentMessageCard.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.context-menu.test.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.crew-pane.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/native-chat-agent-message-sender-source.ts
  • src/renderer/src/components/native-chat/native-chat-agent-message-sender-view.ts
  • src/renderer/src/components/native-chat/native-chat-split-shortcut.ts
  • src/renderer/src/components/native-chat/native-chat-structured-stop-controls.ts
  • src/renderer/src/components/native-chat/use-orchestration-crew.test.tsx
  • src/renderer/src/components/native-chat/use-orchestration-crew.ts
  • src/renderer/src/components/orchestration-crew/CrewAgentIcons.test.tsx
  • src/renderer/src/components/orchestration-crew/CrewAgentIcons.tsx
  • src/renderer/src/components/orchestration-crew/CrewRowDetails.tsx
  • src/renderer/src/components/orchestration-crew/CrewRowMenu.tsx
  • src/renderer/src/components/orchestration-crew/CrewRowView.tsx
  • src/renderer/src/components/orchestration-crew/NativeChatCrewPanel.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.fixture.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.test.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.tsx
  • src/renderer/src/components/orchestration-crew/TerminalCrewPortals.test.tsx
  • src/renderer/src/components/orchestration-crew/TerminalCrewPortals.tsx
  • src/renderer/src/components/orchestration-crew/crew-menu.test-fixture.ts
  • src/renderer/src/components/orchestration-crew/orchestration-crew-follow.ts
  • src/renderer/src/components/orchestration-crew/orchestration-crew-subscription.ts
  • src/renderer/src/components/orchestration-crew/use-crew-menu-focus.ts
  • src/renderer/src/components/orchestration-crew/use-terminal-crew-identity.ts
  • src/renderer/src/components/sidebar/worktree-card-agent-summary.ts
  • src/renderer/src/components/status-bar/icons.tsx
  • src/renderer/src/components/terminal-pane/TerminalPaneSurface.tsx
  • src/renderer/src/components/terminal-pane/terminal-handle-copy.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-element-file-drop.test.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/activate-ai-vault-structured-session.ts
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-icon-glyphs.tsx
  • src/renderer/src/lib/agent-type-icon.tsx
  • src/renderer/src/lib/open-agent-message-sender.test.ts
  • src/renderer/src/lib/open-agent-message-sender.ts
  • src/renderer/src/runtime/runtime-crew-subscribe.ts
  • src/renderer/src/web/preload-api/web-runtime-crew-subscription.ts
  • src/renderer/src/web/preload-api/web-runtime-environments-api.ts
  • src/renderer/src/web/web-runtime-client.ts
  • src/renderer/src/web/web-runtime-connection-auth.ts
  • src/renderer/src/web/web-runtime-connection-socket.ts
  • src/renderer/src/web/web-runtime-connection-transport.ts
  • src/renderer/src/web/web-runtime-connection-waiters.ts
  • src/renderer/src/web/web-runtime-crew-follow.test.tsx
  • src/renderer/src/web/web-runtime-crew.test-fixture.ts
  • src/renderer/src/web/web-runtime-dedicated-subscription.ts
  • src/renderer/src/web/web-runtime-subscription-contract.ts
  • src/shared/orchestration-crew-mounted.test-fixture.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

The panel overlaid the whole chat body, so with it open the composer's
send button sat underneath it. The frame now wraps only the transcript;
the queued drafts, prompt cards and composer stay where main puts them.
Orca writes its failure notices (a worker stopped without reporting, a
chat agent error, a terminal exit) as the worker's own escalation, with
terminal, task and dispatch IDs and CLI syntax meant for the coordinator
agent. The panel showed that text as the row's second line. Only the
panel reads this query, so escalations are skipped there and the row
shows the agent's last real message. An agent's own Blocked escalation
is skipped too; it still reaches the coordinator's inbox.
Opening a row whose agent is gone showed "This agent is no longer
available." Use the existing reasons instead: the chat is no longer on
this host, or the terminal has exited.
A terminal's chat view still mounted the orchestration panel over the
whole chat, so it covered that view's composer and send button. Both
chat hosts now wrap their transcript in the same frame, which takes the
panel's props.
Besides failure notices, the latest line could pick up an empty setup
receipt (a blank line that also moved the row) or a lifecycle message
Orca rewrote to "Orca rejected this worker_done: ...". The panel's
query now admits only conversational types with a body and without the
lifecycle rejection marker, before choosing each peer's latest.
A row with no message fell back to the worker's internal launch stage
("input accepted", "worker report queued") as its second line, and
Details repeated it as Progress. The row now has no second line until
the agent says something, and Details drops Progress; the status icon
already shows the state.

@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.

Actionable comments posted: 2


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6a8ca390-f7ad-427a-8fee-353bea887fd9
Commits

Reviewing files that changed from the base of the PR and between 8bdda3d and 31a0b6c.

Files selected for processing: 9
  • src/main/runtime/orchestration/crew/crew-query.ts
  • src/main/runtime/orchestration/crew/crew-read-model.test.ts
  • src/renderer/src/components/native-chat/NativeChatResolvedView.context-menu.test.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/orchestration-crew/CrewRowDetails.tsx
  • src/renderer/src/components/orchestration-crew/CrewRowView.tsx
  • src/renderer/src/components/orchestration-crew/NativeChatCrewPanel.tsx
  • src/renderer/src/i18n/locales/en.json
Files with no reviewable changes: 2
  • src/renderer/src/components/orchestration-crew/CrewRowDetails.tsx
  • src/renderer/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

The panel no longer admits empty-body messages as a row's latest; the
test's history message now carries the words a peer would send.
In a short split or under a tall composer, the transcript can be shorter
than the panel's header, which then painted over the composer. The chat
frame now clips the panel to the transcript; terminals are unchanged.
The crew's Open failures were English literals. They now go through
translation, and a gone or outdated chat uses main's existing texts.
Settings > Experimental > Orchestration panel (experimentalOrchestrationPanel).
Off mounts nothing: the chat frame, the terminal-hosted chat's identity lookup
and the terminal pane portals all gate where they mount, and toggling applies
live without remounting the transcript.
CI on the merged head failed because main moved agent-session-conversation-view
under shared/agent-session/lifecycle; the crew mounted-render fixture now imports
it from there.
The message card's avatar and its single-sender hook are back to main's code;
the panel keeps its own list hook. The panel's code now loads only when it
first mounts, behind the setting.
Brings main's fixes for its own unit checks (#37345, #37346).
Brings main's Hermes-compatible plugin fingerprint (#37370) so the stacked PR's mobile check can pass.
@brennanb2025
brennanb2025 merged commit c7195a8 into main Nov 2, 2026
58 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/crew-panel-ui branch November 2, 2026 08:23
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