Skip to content

Restore the Orchestration panel experimental opt-in - #37616

Merged
brennanb2025 merged 6 commits into
mainfrom
fix/orchestration-reenable
Nov 3, 2026
Merged

brennanb2025 merged 6 commits into
mainfrom
fix/orchestration-reenable

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​372 $\color{#cf222e}{\Huge{\mathbf{−}}}$​98 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​274
Prod 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​149 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​140

Orchestration’s experimental panel was suspended after enabling it made the app sluggish. The backend performance repair is now merged in #37560, but the saved opt-in is still ignored and the Settings control is absent.

This restores the existing Experimental → Orchestration panel switch and search result. New profiles remain off; existing saved opt-ins work again. Terminal and native-chat panels use the merged visibility-gated implementation, releasing live demand when the last visible view hides. On return, rows wait for a fresh complete snapshot; this disclosed display limitation is tracked in STA-13526. It also bounds message and pending-question preview encoding before truncation, avoiding repeated full-body allocations on status/name changes. The displayed UTF-8 preview stays the same. No saved format, default, or wire behavior changes.

Validation: 26 focused renderer tests and 9 targeted backend performance/preview tests pass (the original 24 renderer cases plus two mounted-gate scaling cases). The new byte-bound regression fails before the repair and passes after, covering winning mail/question bodies, independent N/10N body/row dimensions, settled name updates and UTF-8 boundaries. Renderer coverage includes saved opt-in hydration, off-state work avoidance, live toggles, search, English fallback and translated catalog updates. With 2 and 20 mounted gate consumers, unrelated store, setting and other-host writes cause zero renders in either gate state; actual toggles update every consumer. The latest required local pre-push gate passed all 41 checks, including four typechecks and the full selected unit run; the normal commit hook also passed. Independent correctness, architecture, reference and final performance reviews are complete, with the identified preview repair and render-contract gap resolved. CI is green on layout repair head 21c95e2 (31 passed, 17 skipped). Settings/default/search/live-toggle screenshots were captured, including German with English fallback for the restored row. Terminal and native-chat Managing/Managed by/Talking with rows, previews, menus and Open-existing behavior passed in the seeded test copy. Actual terminal-output and tab-result completion probes passed as separately bounded observations; no broad responsiveness pass is claimed.

Full review path: this restores a saved-setting gate with a prior performance incident and shared chat/terminal consumers. The reviewed plan restores the existing surface, preserves merged demand ownership, and bounds preview construction inside the same performance mechanism; it adds no saved fields, timers or caches. Intended surface difference from the common pattern: this is a cross-agent crew overlay. Fresh-only actionable rows account for terminal-agent turnover within an unchanged shell; retained display is not claimed to match the common pattern.

Measured on an M4Air with 181,239 retained messages, 10,472 actually loaded conversations, and 172 runtime statuses. The same process ran three idle and three finite-update samples per phase in OFF / ON collapsed / ON expanded / OFF order, with ten ordinary status updates over roughly ten seconds per update sample. Three terminal panes and one native-chat root were mounted; visible ON exercised two parties and two relationship rows. Mean main/renderer CPU-seconds per update window were 0.2525/0.8145 OFF, 0.7637/0.9150 collapsed, 0.8559/1.1392 expanded, and 0.2745/0.9629 OFF again. Visible ON therefore adds about 0.50–0.59 main CPU-seconds per ten seconds; this is measurable overhead. Corrected last-visible-owner-hidden samples averaged 0.2492/0.9821 seconds, returning main CPU to OFF levels. All 30 accepted windows recorded zero renderer long tasks. These finite offscreen measurements do not prove zero input lag.

Local action-to-fresh-rendered-row samples were 51.2/40.2/39.0 ms at 171 statuses; they are not relabeled as the later 172-status CPU comparison. Production encrypted loopback transport samples were 80.6/73.7/72.2 ms with two actual server statuses and zero loaded server conversations. That verifies the transport path, not a large loaded remote profile or separate-machine network latency. Original invalid timing spans and hidden-owner setup attempts were excluded and replaced; only corrected windows are reported above.

Captured seeded app UI before the detail-layout repair (no provider reply or sign-in result is claimed; the text overflow visible here is repaired in the new fixture screenshots below):

settings-off.png
settings-german-fallback.png
terminal-preview.png
native-preview.png
loopback-expanded.png

Targeted actual completion probes used a later relaunched process, with 181,241 retained messages (two added Talking with fixtures) and 171 statuses; loaded conversation views were not recounted in that process. Three samples per result measured terminal output at 21.9/20.0/30.1 ms OFF versus 22.0/18.2/20.8 ms ON; native-tab result at 18.5/14.2/14.2 ms OFF versus 14.5/14.9/13.0 ms ON; terminal-tab result at 14.4/14.9/13.2 ms OFF versus 13.7/14.3/12.6 ms ON. These observe actual target output/active-tab results, separately from earlier event-to-animation-frame proxies. They do not establish all-platform or physical input latency. All test processes and admitted listeners were stopped, fixture additions removed, original corpus and winning-body hashes restored, and real-config hashes unchanged.

talking-terminal.png

talking-native.png

Expanded task/question/latest text previously escaped the card because its grid content track kept its automatic minimum width. The repair makes that column and its containing row shrink, then wraps long words within the available width. Full detail text and preserved newlines remain available through the existing vertical scroll; actions are unchanged. The browser fixture now opens the panel and row details and includes long task titles, sender names and unbroken previews. All four new geometry cases fail before the repair and pass after; the entire card spec passes 9/9 in dark mode and the four new cases pass in light mode, at 280px and 360px frame widths. Assertions check every rendered text fragment, value bounds, absence of horizontal scrolling, full text retention and detail collapse. The tested source blobs match commit 21c95e2; earlier CPU/transport evidence is unchanged.

Current rendered detail containment (isolated production components, native latest-message in dark mode and terminal question in light mode):

overflow-after-native.png
overflow-after-terminal.png

@brennanb2025
brennanb2025 marked this pull request as ready for review November 3, 2026 02:08
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The experimental settings pane now includes a searchable orchestration-panel switch with localized labels and search terms. The panel hook reads the setting from the app store and enables the panel only when its value is true. Tests cover panel availability, hydration, live updates, translations, and layout. Crew detail text uses wrapping within the card, with tests for narrow frames. The crew preview calculation encodes at most the first 1,025 UTF-16 code units when measuring UTF-8 size.

Merge Risk: Minimal · up to 21c95

No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% 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. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "Restore the Orchestration panel experimental opt-in" matches the main change. The PR restores the existing Experimental → Orchestration panel setting and search result, and the raw summary …
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.
Description check Passed The description is comprehensive and covers the user impact, implementation, rationale, linked work, visual proof, testing, performance measurements, known limitations, and risk. It does not follow ev…
Full details: Title check

Explanation

The title "Restore the Orchestration panel experimental opt-in" matches the main change. The PR restores the existing Experimental → Orchestration panel setting and search result, and the raw summary shows the hook now reads experimentalOrchestrationPanel from the app store. The title does not mention the preview-encoding bound or the crew card containment fix, but the title does not need to cover every detail. The title is specific, short, and reads as a single sentence.

Full details: Description check

Explanation

The description is comprehensive and covers the user impact, implementation, rationale, linked work, visual proof, testing, performance measurements, known limitations, and risk. It does not follow every template heading or include an explicit Fixes # entry, but the required information is substantially present.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% 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 4 functions across 13 files.

Resolution

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

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
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: d0c345f8-bddc-4f48-bde8-7f8d349e1dcb
Commits

Reviewing files that changed from the base of the PR and between 1e86f0f and 21c95e2.

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

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

@brennanb2025

brennanb2025 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Orchestration was suspended after enabling it made the app sluggish. This restores its existing experimental opt-in on top of merged #37560: missing/false settings stay off, saved true works again, and terminal/native panels release demand when hidden and wait for fresh rows on return. The extra preview fix bounds encoding before truncation while preserving displayed output.

Independent correctness, architecture, reference and final performance reviews finished; the preview allocation issue and missing mounted-render contract are fixed. No open findings or deferred blockers remain. Reviewed head: 21c95e2c57710e36d9063ddae1c68322b8ef4c5a. QA ran production head b0b5dbe6bcd830135979e78e27e35db409fd0927; later commits 6d8b663206ff024ab4f785e48d77db3cdbb44716 and 1e86f0f8a5efe91a928d9029f046cb35d1e45d84 change tests only. The later shipped change 21c95e2c57710e36d9063ddae1c68322b8ef4c5a fixes only the detail-layout tests-row flow, with exact-source browser geometry and fresh screenshots described below; earlier app/performance evidence carries for unchanged flows. Full path; all changed flows are settings/UI/performance tests rows. Intended difference from the common pattern: the cross-agent crew overlay retains fresh-only actionable rows to avoid targeting a later agent in a reused terminal slot.

Validation: 26 focused renderer tests and 9 backend preview/performance tests pass, including N/10N operation bounds and 2/20 mounted consumers with zero irrelevant-update renders. UTF-8 helper parity passed 67 cases. Latest local pre-push checks passed all 41, including four typechecks and selected unit tests; the normal commit hook passed. Current-head CI is green: 31 passed, 17 skipped.

The same-process OFF/ON/OFF comparison used 181,239 retained messages, 172 runtime statuses and two visible parties/two relationship rows; 10,472 loaded conversation views were separately observed earlier in that process. Ten status updates per roughly ten-second window added 0.5002/0.5924 main CPU-seconds with the panel collapsed/expanded. Hiding all owners returned main CPU to OFF levels. All 30 accepted windows recorded zero renderer long tasks. This is measurable enabled overhead, not a zero-cost or all-flow responsiveness claim.

Local action-to-fresh-row was 39.0–51.2 ms at171 statuses. Encrypted loopback returned rows in72.2–80.6 ms with0 loaded server conversations/2 statuses: transport coverage only. A later process at171 statuses (181,241 retained messages including two seeded Talking with rows; loaded views not recounted) produced actual terminal output in18.2–22.0 ms ON versus20.0–30.1 ms OFF, native-tab results in13.0–14.9 ms ON versus14.2–18.5 ms OFF, and terminal-tab results in12.6–14.3 ms ON versus13.2–14.9 ms OFF, three samples each. These finite sequential observations do not prove physical input latency or sustained typing under load. The independent reviewer verified all18 accepted result timestamps and exclusions.

Settings/default/search/live toggle and German fallback screenshots passed. Seeded terminal/native Managing, Managed by and nonempty Talking with previews, menus and Open-existing passed; the exact existing target pane/PTY was verified. No provider reply/login, Mention send or clipboard-result pass is claimed. All test processes/listeners stopped, fixture additions removed, original corpus/body hashes restored and real-config hashes unchanged. STA-13526 is In Review with the linked completion summary.

For Brennan’s review: saved opt-in control and bounded preview encoding. Earlier app screenshots below show seeded UI before the detail-layout repair, with no provider reply or sign-in claim. New fixture screenshots show current containment.

settings-off.png
settings-german-fallback.png
terminal-preview.png
native-preview.png
loopback-expanded.png
talking-terminal.png
talking-native.png

Brennan found the expanded task/question text escaping the card in the initial screenshot. The automatic minimum size of the detail grid allowed long words to widen its text column. The correction makes that track, values and spanning wrapper shrink and applies anywhere wrapping while retaining full text and preview newlines. The initial “expanded” fixture opened the panel but not row details; the new fixture explicitly opens both.

All four new browser geometry cases fail on baseline. The repaired exact-source blobs match 21c95e2 and pass the full 9-test card spec in dark mode plus all 4 new cases in light mode, terminal/question and native/latest at 280/360px. Checks cover all rendered text fragments and detail values, no horizontal scroll, full 1024-character unbroken preview and detail collapse. Existing vertical scrolling is retained. Continued independent review and the fresh end-of-round3 decider accepted the correction, with no new finding or design/repeat trigger. No full app or performance campaign was repeated.

For Brennan’s review: detail text sizing/wrapping and the current rendered component fixtures:

overflow-after-native.png
overflow-after-terminal.png

@brennanb2025
brennanb2025 merged commit 7863aef into main Nov 3, 2026
48 checks passed
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