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. |
ce15562 to
1d9b2fd
Compare
|
Codex review: needs changes before merge. What this changesThis PR defers panel, widget, and progress menu entries and prepares sharing content after pointer or keyboard intent. Example: Open the panel-type menu after the terminal label changes to “Updated terminal.”
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored experiment open under its explicit do-not-merge hold; source review found no definite introduced defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI menu consumers turn current session, panel, and widget props into entries; the shared Menu owns mounting, focus, dismissal, and selection dispatch. flowchart TD
A[Current domain props] --> B[Menu consumers]
C[Pointer or keyboard intent] --> B
B --> D[Lazy entry owners]
D --> E[Shared Menu lifecycle]
E --> F[Visible controls]
F --> G[Live action callbacks]
Technical reviewBest possible solution: Retain the existing menu owner and land this optimization only if the experiment meets its recorded acceptance criteria. Do we have a high-confidence way to reproduce the issue? Baseline source shows eager panel/widget entry memos and eagerly mounted progress-menu content; the reported timing impact was not independently reproduced. Is this the best way to solve the issue? The patch targets construction at its consumers, reuses existing lazy mounting and idle preparation, and preserves live selection callbacks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f2556399319a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +73, Tests +116. Total +189 across 8 files. Added test files: 0. View PR surface stats
Review metrics
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, 10:29 PM ET / October 17, 2026, 02:29 UTC. |
Superseded by #175011, which keeps only the three lazy menus and repeats the reload comparison with 11 interleaved pairs. This closed experiment is not intended to merge.
Stopped experiment — do not merge. The complete timing set does not qualify the candidate under the cold-load gate. Closing this draft unmerged.
What Problem This Solves
A signed-in reload of a dashboard deep link constructs panel-type, widget and progress menu entries while those menus are closed. The candidate applies lazy keyed entries and prepares sharing only on pointer/focus intent, with frozen presentation inputs while closed and catch-up before native popup focus.
User Impact
Construction counts fall substantially, but the complete reload collection does not have separated blocking IQRs. Sharing's existing-DOM admission metric improves, while its next-frame bound remains above 40 ms. This experiment is not promoted for landing.
Why This Change Was Made
The earlier campaign census attributed hundreds of discarded icons to these menus. The candidate replaces eager builders, releases the three small menus after close, and reuses the existing Menu idle scheduler for sharing. Selection continues to use live props.
Runtime delta: +73 lines across five production files, for keyed row identity and the frozen-presentation/current-data handoff. Three test files add 116 lines. The requested diff filter reports +157 because it includes the 84-line TSX test; excluding
.test.tsxgives the production +73. No schema, durable server record, dependency, configuration option, or changelog changed.Evidence
One AWS c7a.4xlarge, lease
cbx_e8964e232b7a; 16 vCPUs, 31,378 MiB RAM, Node 24.19.0, pnpm 12.11.1, repository Playwright Chromium. Baseline source3415f6a4ee43, candidate1d9b2fd571a1. Canonical Team-scale persisted dashboard reload, 48-person sharing fixture, 1719×1179 viewport, 35 ms wire delay and 4 ms event spacing. Seven alternating blocks each contained a cold and intent-cohort run per revision: 28 successful reloads. All reload measurements precede intent events. Normal bundles were untraced; census bundles were separate diagnostics.The no-intent subset passes IQR separation; the complete collection overlaps. The complete collection is retained rather than selecting the favorable subset for promotion.
First-open entry admission, p50 / p90 ms:
Only sharing was prewarmed, with preparation completed before clicking. Existing DOM admission is not a paint measurement: sharing's intent-cohort next-rAF bound is 82.9 / 104.1 → 44.2 / 65.6 ms, and post-rAF rendering opportunity is 106.6 / 128.4 → 66.6 / 87.2 ms. The ≤40 ms visible-opening target remains unproven. Progress was measured after opening the real Details surface, using keyboard admission. Other timings use the repository overlay probe.
Cold FCP was 432 → 436 ms, connect-send 86 → 89 ms, and first transcript 376 → 380 ms, with overlapping IQRs. Reload RPC count remained 82 and median CLS was unchanged.
Separate L120-method census, constructed / connected icons:
The progress baseline includes 44 refresh-entry constructions plus its trigger. Candidate counts retain only triggers. These instrumented captures are not timing proof.
Focused tests pass: sharing 14, panel 20, progress 7, existing widget 1 (42 cases). New regressions fail on the original source. The native-opening ordering regression also fails on the initial prototype and passes after catch-up moved before native show. Final independent review is clean through P2. Remote
pnpm test <file> --maxWorkers=1wall times: sharing 7.150 s, panel 8.759 s, progress 3.778 s.Draft CI: five successful checks, 55 skipped at the exact head. Full UI e2e, native browser suites and changed-file qualification stopped at the performance gate. Initial custom keyboard/hidden-progress probe failures were retained and excluded from timing; no complete native keyboard/typeahead qualification is claimed. No private Team capture or real account was used or uploaded. Raw captures and reproducible scripts are retained with the lane report.