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 changesAdds an opt-in animation inventory and Details ancestor-style sampling to the existing warm-reload proof rig. Example: An operator captures a signed-in chat reload with Details open using --entrance-motion.
Review scores
ProductKind: Test only · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open as the author's explicitly unmerged diagnostic experiment; no concrete introduced correctness or security defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe local proof rig seeds synthetic state, launches an isolated Gateway and Chromium, injects browser probes, and exports reload reports and captured frames. flowchart LR
A[Proof CLI options] --> B[Isolated Gateway and synthetic fixture]
B --> C[Chromium reload]
C --> D[Existing browser probe]
D --> E[Optional motion inventory]
E --> F[Reload reports and frame evidence]
Technical reviewBest possible solution: Use the existing probe to identify specific unwanted mount animations before proposing any narrowly measured runtime change. Do we have a high-confidence way to reproduce the issue? This is an instrumentation experiment rather than a completed bug fix; no target code was executed during this read-only review. Is this the best way to solve the issue? Extending the existing browser probe is a focused way to investigate remaining motion while preserving the established animation census and capture owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0177edd6c8d. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceOther +124. Total +124 across 2 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 November 1, 2026, 8:43 PM ET / November 2, 2026, 01:43 UTC. |
d05a43c to
7252e87
Compare
78af194 to
3ef85e8
Compare
3ef85e8 to
61c8547
Compare
What Problem This Solves
Stopped at the lane's visible-swap escape hatch. This experiment is not a passing performance PR and should not merge.
The campaign's measured 14-state waterfall concerns a signed-in reload of a dashboard deep link. This lane inventories entrance motion over already-final cached content. It does not establish the complete cached-page exit criterion.
Why This Change Was Made
The existing browser probe now samples CSS animations, CSS transitions (including starting styles), and app Web Animations every frame. It records animation identity, properties, start time, duration, target, viewport intersection, existing restore markers, and initial/final content fingerprints. Zero-size animated containers include positioned descendants when determining viewport intersection. Separate diagnostics capture Progress ancestor styles and a compositor layer trace.
The branch retains the smallest unshipped candidate: delete the context ring's 200 ms mount fade, preserving hover/color and popover motion. It is independently tested, but does not qualify as a cached-first-paint improvement: usage is supplied after live admission. No other production change was made.
User Impact
No change is being proposed for landing. In particular, the position rail's transition is retained: its initial marker state is not final, and the same transition serves live overflow after a send. Pending skeletons, live availability transitions, and user-opened overlays are retained.
Evidence
All captures use synthetic data and isolated loopback Gateways, with the plugin fixture and operator sidebar settings. No real account, live Team service, personal browser, or private capture was used for browser proof or uploaded.
Inventory
Counts below are animation identities per warm reload, not animation-frame samples. Archived-route inventory has two reloads per route. The active-session attribution variant separately exercises the composer and Progress; archived sessions replace the composer and do not expose Progress. Paths/lines refer to this branch's source (the removed ring declaration was at the indicated rule).
.chat-position-rail, opacity transitionui/src/styles/chat/message-layout.css:33.context-ring,fade-inui/src/styles/chat/layout.css:947.sidebar-rail__button.sidebar-new-session, color/backgroundui/src/styles/sidebar-rail.css:156.sidebar-session-group-actions.sidebar-new-session, colorui/src/styles/layout.css:983ui/src/styles/components.css:2842,layout.css:2702.chat-send-btn--voice, color/opacityui/src/styles/chat/composer-surface.css:866.chat-talk-input-picker__trigger, colorui/src/styles/chat/composer.css:925.skeletontab/icon/line,shimmerui/src/styles/base.css:1278.chat-error,chat-error-enterui/src/styles/chat/layout.css:28.chat-scroll-to-bottom, starting styleui/src/styles/chat/layout.css:907ui/src/styles/components.css:708,:732ui/src/styles/components.css:1193,select-picker.css:62ui/src/styles/components.css:2413ui/src/styles/chat/details.css:138,:156ui/src/styles/chat/mobile-host.css:74ui/src/styles/layout.css:2459Corrected archived census: chat 93/93 total animations; dashboard 152/152, including 60 pending shimmers. These totals include live color/background transitions and do not represent entrance failures.
Why the rail is a stop, not a fade deletion
The original viewport classifier missed the rail because its own box is zero-size. The corrected classifier proves positioned children are in the viewport. Both corrected chat reloads have one 240 ms opacity transition, starting before hello handling. Their full marker fingerprints differ at start and finish.
A separate bounded attribution capture identifies exactly one change among 192 parsed elements: marker 66 gains
data-visible103.6 ms after the first animation sample.message-layout.css:152changes that marker from the dimmed tick color to the visible-message color. Suppressing the fade would expose this known intermediate state. The live visibility e2e also explicitly exercises the same fade when a sent reply makes the conversation overflow and when resize makes it fit again.The smallest possible restore gate is to project the pane owner's existing
cachedSessionStatePending()plus retained session state throughChatThreadPropsinto adata-restoringattribute and override the rail transition there (roughly six runtime lines, no stored state). It was not implemented because marker finalization must be resolved first; simply removing motion does not make the first state final. Follow-up owner:chat-position-rail-controller.ts/ visibility publication. Avoid adding a second restoration state or a synchronous per-marker layout walk without separate evidence.Context ring attribution
The active fixture initially lacked a fresh versioned usage total. That was a fixture setup defect, not a product result. The corrected fixture uses the canonical token-version constant and the synthetic final assistant usage (1,800 tokens).
These are instrumented attribution timestamps, not comparative timing results. Every ring has identical initial/final content but no restore marker. Its required
totalTokensis excluded from the boot roster, transcript metadata, and composer snapshots. Thus an identical fingerprint alone does not establish cached admission. Deleting this fade passes an appearance regression but cannot be presented as a measured cached-first-paint win.Progress C
The active chat trace contains 3,241 compositor layer snapshots. The direct LayerTree event stream was empty; the retained trace uses the actual layer tracing categories instead. Progress ancestors have no running animation, opacity 1,
will-change: auto; desktop Details hasdata-restoringandtransition: none. Its identity transform does not change.The card moves vertically (105 → 156 → 217 px) as surrounding Details sections fill. An early fixed crop differs by 11,721 pixels because it captures different content at the old position. Once the card occupies its final position, three inspected crops are pixel-identical (0 changed pixels). The reported fixed-content glyph-only repaint was not reproduced. This is not a ≥10/11 first-paint stability claim, and no speculative compositor workaround was added.
Proof and gaps
AWS instance type fixed at c7a.4xlarge, 16 CPUs / approximately 31 GiB; attribution preflights show over 92% CPU idle. Chromium is the repository's Playwright browser.
cbx_be5346eadbf9: initial archived and active attribution; Progress layer trace. Released.cbx_550d5d9561d3: corrected usage fixture preflight and two active warm reloads per route. Released. The attempted pair run failed fixture readiness before producing pairs; it is not a product failure.cbx_46a198dd7fb7: cancelled during setup to correct lease-retention configuration; no proof. Released.cbx_6d9494c742f6: corrected zero-size census, two archived warm reloads per route at head61c85474c9e45a4ce64f04d0e2e20aa4e3890af8, baseline UI CSS from8ba4604bb7f264ba9f978b480d6e8d69b388bab3; extra marker-markup attribution uses a temporary diagnostic-only probe extension. Runtime build passed in 2m 1s. No candidate timing comparison. Released; all isolated Gateway listeners were absent after capture cleanup.The context-meter regression is red with the old CSS (first opacity 0), green after deletion (1).
pnpm test ui/src/e2e/session-context-meter.e2e.test.ts --maxWorkers=1: 1/1 passed, 15.19 s wall. Existing Details reload e2e: 2/2 passed, 17.11 s Vitest duration. These focused results precede the final rebase and are not final-head broad proof. Headless probe smoke covers CSS animations, starting-style transitions, app Web Animations, and visible descendants of zero-size containers. Independent incremental reviews are clean through P2. Exact-head draft checks: 7 successful, 58 skipped; this is not ready-PR broad CI.Not run / not passed: 11 interleaved candidate pairs, A/A, native Team-scale performance secondaries (hello/FCP/painted rows/final rows/LoAF/CLS/visible transcript), reading geometry gate, measured snapshot-growth gate, full UI e2e, ready-PR broad CI, and visual before/after acceptance. No speedup, no secondary non-regression verdict, and no complete cached-page claim is made. Synthetic attribution contact sheets and Progress crops were inspected locally; no images were uploaded for this stopped experiment.
Runtime candidate delta: −1 LOC. Prescribed non-test stat against the pinned main: 201 additions / 10 deletions, net +191, almost entirely requested diagnostic tooling/documentation. Full diff: seven files, 214 additions / 10 deletions. The existing context-meter scenario adds 13 test lines with an exact 13-line allocation. No production persisted fields, protocol, schema, or configuration were added. No changelog edit.