Skip to content

Show the open Orchestration panel as a floating card - #37412

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/orchestration-panel-card
Nov 2, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/orchestration-panel-card

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​70 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​70
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​69 $\color{#cf222e}{\Huge{\mathbf{−}}}$​26 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​43

Problem

When you open the Orchestration panel (the experimental panel showing who an agent manages and talks with), it becomes a full-height strip down the right side of the chat or terminal, from under the pane's title buttons all the way to the bottom. With two workers that is mostly empty space covering the conversation, and in a terminal it covers the agent CLI's own prompt and latest output at the bottom.

What changes for users

The open panel is now a floating card in the same top-right corner as the closed tab: about 312px wide, 10px in from the pane's right edge, just below the title buttons, with rounded corners, a border and a soft shadow.

  • The card is only as tall as its rows.
  • In a native chat (and in a terminal's chat view) it always ends above the composer, so the message box and Send stay uncovered.
  • In a terminal running an agent CLI it stays out of the bottom quarter of the pane at any normal height, so the CLI's prompt, status line and recent output stay visible.
  • When the rows don't fit, the card scrolls inside.
  • In a narrow pane the card fills the pane's width minus 10px on each side. In very narrow panes the "Orchestration" title truncates and the header's side padding shrinks, so the whole collapse button stays inside the card down to the smallest pane size.
  • In a pane too short for both (under about 93px, e.g. a terminal split dragged to its 50px minimum), the card's header always shows, so the collapse button stays usable; the pane's edge clips the rest, as before this PR. Intended: the 75% limit is there to keep the CLI's prompt visible, and a pane that short has none worth protecting.

The closed tab, the rows, the buttons, Mention all, the row order, the experimental setting and the stay-open behaviour are unchanged. The collapse button still turns the card back into the tab. With the setting off nothing mounts, as before.

How it works

Plain CSS, no measuring:

  • The card is positioned in the tab's corner and takes its height from its rows, with a maximum height.
  • In chats, the panel already sits inside the frame that wraps only the transcript (the frame ends where the composer starts), so the maximum height is the frame minus a small gap.
  • In terminals, the maximum height ends at 75% of the pane's height. The same rule applies to every terminal pane, whatever agent runs in it.
  • The terminal portal tells the panel it is on a terminal; chats are the default.

Screenshots

Native chat, five workers (card fits its rows, composer clear):
nativeChatExpanded.png

Short native chat, ten workers (stops above the composer and scrolls):
tenWorkersShortChatExpanded.png

Short terminal, ten workers (bottom quarter, where the CLI prompt sits, stays clear; scrolls):
tenWorkersShortPaneExpanded.png

Terminal, two workers (card hugs its rows):
twoWorkersExpanded.png

Terminal split at its 50px minimum (header and collapse button still show; the pane edge clips the rest):
twoWorkersMinimumPaneExpanded.png

Terminal split 100px wide (title truncates, collapse button stays inside the card):
twoWorkersNarrowPaneExpanded.png

Tests

  • Real-browser layout checks in tests/component-fixtures/orchestration-crew-card.spec.ts: in a short native chat the card ends above the composer and scrolls; in a short terminal it ends at 75% of the pane's height and scrolls; at the 50px minimum split height the collapse button is still clickable; in 100px and 50px wide panes the whole collapse button sits inside the card. All pass locally against the component fixtures.
  • Existing panel unit tests pass (OrchestrationCrewPanel.test.tsx, TerminalCrewPortals.test.tsx, NativeChatStructuredSession.crew-pane.test.tsx).
  • Fixtures updated: the chat fixture now uses the real transcript frame, terminal fixtures show a CLI prompt in the bottom quarter, and two short-pane cases with ten workers and minimum-height and narrow-width terminal cases were added.

Review path: full

Opened on the light path (2 production files, about 20 lines, layout only); the first review moved it to the full path because the minimum-height case needed a design choice, now settled as above. The narrow-width fix follows a design-panel ruling.

The open panel now floats in the closed tab's corner as a card as tall as
its rows. In chats it stops above the composer (the transcript frame
already ends there); in terminals it keeps the bottom quarter clear for
the CLI's prompt and recent output. Past that it scrolls inside.
@brennanb2025
brennanb2025 marked this pull request as ready for review November 2, 2026 08:50
A terminal split can be 50px high, leaving the card no room under the 75%
limit, so its header and collapse button were clipped away. The card is
now never shorter than its header.
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: 8cd3019e-f9ca-44aa-b7a7-a6e54128a331
Commits

Reviewing files that changed from the base of the PR and between 8d281aa and 783281c.

Files selected for processing: 4
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.fixture.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.tsx
  • src/renderer/src/components/orchestration-crew/TerminalCrewPortals.tsx
  • tests/component-fixtures/orchestration-crew-card.spec.ts

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: ddff6340-d116-4690-9c3c-a09ead2e97d6
Commits

Reviewing files that changed from the base of the PR and between 0940393 and 8d281aa.

Files selected for processing: 3
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.fixture.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.tsx
  • tests/component-fixtures/orchestration-crew-card.spec.ts
Files skipped from review as they are similar to previous changes: 1
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.tsx

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

Walkthrough

The orchestration panel now renders as a surface-aware card, with different height limits for chat and terminal surfaces. The terminal portal identifies its content as terminal. Fixtures cover short native-chat and terminal panes, including minimum-height and narrow terminal panes. Component tests check card visibility, row overflow, card bounds, and collapse behavior.

Merge Risk: Minimal · previous review 8d281

The 50px terminal layout may clip lower card content, but the collapse control remains usable, so no merge-blocking risk remains.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 33.33% 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 clearly explains the problem, user-facing changes, implementation, visual results, and tests. However, it does not follow the required template: it omits the ELI5, Why, Linked Issue, V… Restructure the description using the repository template. Add an actual linked issue, an explicit rationale and alternatives considered, the required Visual Proof and Testing sections, risk level with affected users and rollback plan, appl…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: displaying the open Orchestration panel as a floating card.
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 33.33% 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 6 functions across 4 files.

Resolution

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

Full details: Description check

Explanation

The description clearly explains the problem, user-facing changes, implementation, visual results, and tests. However, it does not follow the required template: it omits the ELI5, Why, Linked Issue, Visual Proof, Testing, Risk, Review, Agent skill upstream boundary, Notes, and Checklist sections. It also provides no linked issue and no explicit risk level or rollback plan.

Resolution

Restructure the description using the repository template. Add an actual linked issue, an explicit rationale and alternatives considered, the required Visual Proof and Testing sections, risk level with affected users and rollback plan, applicable AI disclosure, Review and Agent skill boundary sections, Notes, and the required checklist items. Preserve the existing screenshots and test details in the corresponding sections.

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.

Follow-up Comments

Nitpick Exercise user scrolling in the card test.

1-16: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Exercise user scrolling in the card test.

The current checks prove only that ten workers overflow the row body. They do not prove that the row body scrolls. Clipped overflow can satisfy the same checks. Hover the row body, send a mouse-wheel event, and assert that its scrollTop becomes greater than zero.

Suggested fix
   const rows = card.locator('.overflow-y-auto')
   const bounds = await card.boundingBox()
   if (!bounds) {
     throw new Error('Card has no bounds')
   }
   // Ten workers never fit a short pane, so the rows must scroll inside the card.
   expect(await rows.evaluate((element) => element.scrollHeight > element.clientHeight)).toBe(true)
+  await rows.hover()
+  await page.mouse.wheel(0, 500)
+  await expect.poll(() => rows.evaluate((element) => element.scrollTop)).toBeGreaterThan(0)
   return bounds

Open the source location

In a narrow split the card is 20px narrower than the pane and its title
didn't truncate, so the collapse button was pushed past the card's edge.
The title now truncates and the header's side padding gives way before
the button, down to the 50px pane minimum.
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review status

Problem. When you opened the experimental Orchestration panel, it became a full-height strip down the right side of the chat or terminal. With a couple of workers it was mostly empty space over the conversation. In a terminal it covered the agent CLI's own prompt and latest output at the bottom.

What changes for users. The open panel is now a floating card in the same top-right corner as the closed tab. It is only as tall as its rows:

  • In chats (including a terminal's chat view) it ends above the composer.
  • In terminals it stays out of the bottom quarter, so the CLI's prompt stays visible.
  • Past that it scrolls inside.

The closed tab, rows, buttons, Mention all and the experimental setting are unchanged.

Fixed during review.

  • In a terminal split dragged to its smallest height (50px), the card shrank to a sliver and its collapse button disappeared. Now the card is never shorter than its header, so the collapse button stays usable. The pane edge clips the rest, as before this PR. Intended: the coordinator chose this, because the 75% limit exists to keep the CLI prompt visible and a pane that short has none.
  • In panes about 100–135px wide, the header title pushed the collapse button out of the card. Now the title truncates and the header padding gives way first, so the whole button fits down to the smallest pane width. A three-model design panel chose this fix over narrowing the card's approved margins.

Deferred / not fixed. Nothing from review.

Verified.

  • Review covered correctness, an architecture challenge, a readiness pass and a first-hand comparison against how the reference apps lay out floating cards and constrained headers.
  • Real-browser layout checks in tests/component-fixtures/orchestration-crew-card.spec.ts pass:
    • a short chat ends above the composer and scrolls;
    • a short terminal ends at 75% and scrolls;
    • the 50px-high pane keeps collapse clickable;
    • in 100px- and 50px-wide panes the whole button sits inside the card.
      The checks for both review fixes fail without them.
  • The existing panel unit tests pass.
  • CI is green on 8d281aa.
  • A real-app screenshot run on the M4Air (6ce04d0) passed every flow:
    • native chat with 4 workers (fits its rows) and with 10 workers in a short chat (16px above the composer, scrolls);
    • a terminal's chat view;
    • Claude Code and Codex terminals (the card stops exactly at 75% of the pane height and the bottom quarter stays visible);
    • a split pane (the card stays inside its pane, width = pane − 20px);
    • title buttons still clickable; the find bar draws over the card;
    • the collapse button and Escape both close it.

Not verified.

  • The two review fixes change layout only in panes under about 135px wide or 93px high. They were checked in the browser layout tests, not in the real app.
  • The QA run used the branch only, with no main comparison. This is a layout-only change.

Since the QA'd head:

  • 0940393 adds the header floor at tiny heights (layout; covered by the minimum-height check).
  • 8d281aa makes the title truncate and the padding yield at tiny widths (layout; covered by the width checks).
  • 783281c merges main (5 commits, none in these files).

Noticed in QA, not caused by this PR (for Brennan):

  • On a coordinator Claude terminal, "Continue in Chat UI" opened a separate native chat tab, and the Orchestration tab and its workers didn't follow it to the new tab.
  • In a terminal, after clicking the card's header text, Escape doesn't close the card until you click back into the terminal. Clicking the header text moves focus out of the pane; the PR doesn't change this code.
  • The card covers the corner of Orca's notice banner in a Claude terminal (the "Got it" button's centre stays clickable). The old full-height panel covered the same corner.

For Brennan's review

Screenshots from the QA lead's real-app run:
Native chat, 4 workers: f1-native-4.png
Short native chat, 10 workers: f2-native-10-short.png
Terminal chat view: f3-terminal-chat-view.png
Claude Code terminal: f4-claude-cli.png
Codex terminal: f5-codex-cli.png
Split pane: f6-split.png
Title buttons and find bar: f7-title-and-find.png
Banner corner (inherited): lead-f4-banner-overlap.png

Where judgment matters:

  1. The card's size limits: 75% of the pane in terminals, the frame above the composer in chats, and the header floor.
  2. The header's narrow-pane allocation.
  3. The terminal mount passes the terminal limit.

@brennanb2025
brennanb2025 merged commit c1641a8 into main Nov 2, 2026
42 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/orchestration-panel-card branch November 2, 2026 09:57
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