Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR freezes closed header-menu presentation and owner-roster updates, then refreshes them synchronously before opening. Example: A closed session menu receives pinned=false and unread=true after previously showing a pinned session.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open as a maintainer-owned, explicitly paused performance experiment; no concrete introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI header menu consumes session properties and Gateway directory projections, presents available actions, and dispatches selections through existing action owners. flowchart LR
A[Session properties] --> C[Parked presentation]
B[Gateway directory owners] --> D[Parked roster]
C --> E[Retained native menu]
D --> E
E --> F[Existing action owners]
Technical reviewBest possible solution: Retain the existing parking helper and native menu lifecycle, and adopt this optimization only if the planned comparison demonstrates a benefit without worsening opening behavior. Do we have a high-confidence way to reproduce the issue? Current source shows retained hidden menu content consuming live properties and roster projections; the claimed performance magnitude has not been independently reproduced. Is this the best way to solve the issue? Reusing createParkedProjection fits the existing retained-view contract and preserves the shared action owner, but the optimization's value still depends on measurements. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 009f93170ec1. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +7, Tests +9. Total +16 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 6:31 PM ET / 22:31 UTC. |
What Problem This Solves
A signed-in dashboard deep-link reload keeps updating the closed header session menu during live session traffic. Campaign evidence attributed 290–583 late mutations per reload window to this hidden surface.
User Impact
Rejected experiment — do not merge. The stream improved, but header first-open readiness regressed by 18.2 ms p50, exceeding the campaign's 16 ms allowance. The first render opportunity also regressed by 23.8 ms. This variant must not ship.
Why This Change Was Made
The candidate parks header presentation props and the owner snapshot while the menu is closed, retaining the idle-prepared DOM. It reconciles synchronously before native opening validates and focuses the menu. Roster construction moves inside the parked boundary, deleting its separate eager memo. The result demonstrates a tradeoff: less background work, more synchronous work at opening. It does not establish that the remaining cost is inherent.
Evidence
Seven interleaved AB/BA pairs on one quiet AWS c7a.4xlarge, lease
cbx_163b383052c7(16 AMD EPYC 9R14 vCPUs). Production bundles built once per variant; repository Playwright Chromium; warm synthetic dashboard reloads; 125 mixed live frames across 24 active sessions and 126 assignment options. Values below are median [Q1, Q3].Both stream busy/event and stream blocking improved with non-overlapping IQRs. The first-open gate failed, so this draft is closed rather than promoted. No full UI e2e or CI acceptance claim is made after that stop decision.
The header test file passed all 24 tests on the lease (9.17 s wrapper wall time, 7.90 s Vitest duration). The regression fails on the baseline at its closed-menu mutation assertion. Native opening, compact actions, ordering/group preservation, action gating, and retained row identity passed the existing file. P2 autoreview is clean. The test waits for
overlay-after-hidebefore observing steady-state mutations.Measured baseline:
a1506c240abaa0781b7a462c30c653d2caf14dd4; measured candidate runtime:a77fbf22f819c1f2fc2f15d321e861235e8c8a08, with the test-only lifecycle correction recorded as a patch. Subsequent branch updates preserve the experiment; these numbers remain evidence for that pinned comparison.Production delta for the experiment: +7 LOC, 26 insertions / 19 deletions across three files. The growth carries the closed/open presentation boundary and synchronous native focus contract; the redundant eager roster memo is removed. One header regression file also changes. No Gateway state/schema/config or changelog changes.
Harness fidelity corrections were kept outside production: legacy chat-controller counters are explicitly unavailable after their Solid cutovers; the current sidebar counter remains. Browser-native TaskDuration, LoAF attribution and DOM observations supply the performance evidence. The synthetic mock advertises
sessions.assignOwner, which the stock fixture omitted, so the real owner branch can open. Both variants use identical instrumentation and capability data. No private deployment capture is attached.Follow-up for the campaign lead: preserving a completed idle-preparation snapshot while dropping live dependencies may avoid this opening cost. It was not attempted after the gate failed.