Repository navigation
Restore the Orchestration panel experimental opt-in - #37616
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
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: 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. 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: |









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):
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.
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):