Repository navigation
fix(ui): stop static loading placeholders from retaining animations - #194146
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 changesDisable shimmer animations on static loading placeholders, tighten the existing WebKit regression, and expose the benchmark’s idle measurement duration. Example: Open the Control UI in Playwright WebKit 27.2 and switch conversations.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a documented remainder of the WebKit animation-retention bug with a focused fix, and no introduced correctness defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI’s critical HTML stylesheet controls static startup and route placeholders; the shared stylesheet supplies generic shimmer animations, and native browser inspection detects effects retained after detachment. flowchart LR
A[Control UI document] --> B[Static placeholder CSS]
C[Shared skeleton CSS] --> B
B --> D[Browser animation lifecycle]
D --> E[Native WebKit census]
F[Engine benchmark] --> D
Technical reviewBest possible solution: Keep the animation override in the existing static-placeholder CSS owner and retain the strengthened native retention regression. Do we have a high-confidence way to reproduce the issue? Source establishes the missing animation override and the existing native census exercises the relevant lifecycle; the reported WebKit retention result was not independently reproduced during this read-only review. Is this the best way to solve the issue? The smallest complete production fix is the added CSS declaration: static placeholders must create no shimmer effects, and the existing regression now checks that invariant without adding runtime machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d4ae77eae296. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests 0, Docs +6, Other +4. Total +11 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 6, 2026, 8:34 AM ET / 13:34 UTC. |
|
Inspected synthetic-only before/after proof. Fixed phases are 0, .103, .257, .503 and .751 of the unchanged 1.6-second rotation. All 20 corresponding base/head crops have zero differing RGBA pixels and identical ring geometry/computed styles. Offscreen removal (or animation removal on retained rows), reveal, reduced motion and motion restoration passed in both engines with one and twenty running rows. One-ring sheets use 4× nearest-neighbor magnification; twenty-ring sheets retain 1× pixels. Full-page pairs are labeled 50% overviews. These are phase/appearance checks, not live-cadence measurements. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merged via squash.
|
…penclaw#194146) * fix(ui): disable shimmer effects on static loading placeholders * test(ui): synchronize catalog and identity gateway fixtures * test(ui): allocate measured gateway fixture growth
Port Telegram callbacks, hook session keys, private-topic approvals and interactive widgets with complete send/edit/route security companions. Include Feishu captioned media, iOS permission Sendable callbacks, WebKit animation/menu retirement and pending automations props handling. Keep Matrix malformed formatted-mention parsing linear-time. Adapt the 11.4 equivalents to the fixed beta baseline where available. Source PRs: #196217, #191585, #196822, #194027, #197519, #198038, #196991, #198380, #198658, #184432. Companion scope: #191647, #192162, #198022, #197271, #194146; #197670 is folded into #197519 equivalent. (cherry picked from commit 928c118) (cherry picked from commit 569ca48) (cherry picked from commit efa744e) (cherry picked from commit c301da9) (cherry picked from commit 641c4d5) (cherry picked from commit b9d3fb4) (cherry picked from commit a213a51) (cherry picked from commit ec46689) (cherry picked from commit 779d22e) (cherry picked from commit 129ccc3) (cherry picked from commit 849c050) (cherry picked from commit b22f35f) (cherry picked from commit 8b414e9) (cherry picked from commit 01ecda4) (cherry picked from commit f978e54) (cherry picked from commit 6e60479) (cherry picked from commit ec7b49a) (cherry picked from commit 1d72ad0) (cherry picked from commit 5e2c66f) (cherry picked from commit dfb6454) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f7c581c7f8bf0e57c7d8799e928a121b24462450) Co-authored-by: vincentkoc <[email protected]>








What Problem This Solves
Static loading placeholders hid their pseudo-element content but still inherited an infinite shimmer animation. WebKit retained 37 detached effects after bootstrap, so a visible session ring paid roughly 60 main-thread style/commit cycles per second even though the ring could run on the compositor.
Add
animation: noneto the existing static-placeholder rule. The 37 effects are 13 initial/newplaceholders and three eight-node connecting sidebars. The existing generic-loader cleanup remains. No ring markup, mask, phase, easing, duration, reduced-motion rule or visibility owner changes.The native WebKit regression now requires zero detached shimmer effects after bootstrap and session churn. A small benchmark option,
--idle-duration-ms, records bounded idle windows while retaining the 30-second default.Evidence
All 240 observations passed: 20 rotated base/head/base triplets, one and twenty visible running rows, Chromium and WebKit, desktop/default/localhost, 1×. Each arm has 100 measured seconds per cell (20 × 5 s), with 1 s warmup per observation. Every endpoint stayed connected and visible with the expected ring count. Chromium uses renderer thread CPU; WebKit reports Timeline elapsed style work, not CPU. Profiling overhead is included. These are synthetic Gateway fixtures, not provider latency measurements.
WebKit median style work falls 99.95% / 99.93%. Chromium distribution median changes +0.67% / −0.17%, and p95 +0.25% / −0.10%; the one-row p95 movement is below 1%. Matched-pair median CPU changes are +1.29% / +3.15%, within the 5% band.
The paired Chromium A/A median changes are +0.99% / +2.50%; paired p95 values show noise (+4.72% / +8.06%). Candidate paired p95 values are +8.15% / +9.58%, while distribution p95 holds. Host load average ranged 7.36–18.51. No claim is made that every individual pair improves.
Paint/composite records are native Timeline events, not unique displayed frames. Timer, rAF and observer counts did not change. Separate native census: 37 detached running shimmers → 0, with the visible
btn-spinner-spinstill running. Cancelling only detached effects reproduced the same reduction before source edits.Appearance and behavior
Inspected before/after screenshots and all five phases. All 20 corresponding ring crops have zero differing RGBA pixels; computed geometry/styles match exactly. Offscreen removal/reveal and reduced-motion stop/recovery passed in both engines at both row counts.
Checks and scope
The production change is one CSS declaration. Changed-file LOC is 5,827 → 5,860 (+33): the core fix remains HTML +1, benchmark code +4 and documentation +6; CI fixture repairs add 20 lines and their scoped allocation adds 2 lines. No Solid component/effect/observer/owner count changes and no new runtime abstraction.
Tested Playwright 1.64.1, Chromium 156.0.8078.4 and WebKit 27.2/revision 2370. The WebKit distribution maps to upstream
56453fdfe0b0ca6258c23e6453b34f70b885d13f; this is not an installed-Safari test or independent binary-source attestation. The application-time clock is unavailable for idle and WebKit has no valid interval thread-CPU clock here. The result proves this WebKit build can composite the app ring once unrelated retained effects stop ticking; shipping Safari savings remain unmeasured.Reproduce the comparison:
Verdict: a same-look fix, with no motion or frame-rate trade.
Full-CI repair
Run 42229539114 failed the catalog picker test in attempt 1 and again in the single justified shard retry. The retry also failed
Slack inline identity display > renders linked people and bot fallbacks through a real Gateway without rewriting code. Both names passed on scheduled main; neither failure is claimed as inherited.The catalog diagnostic showed a 150 ms delayed passive publication read overlapping picker opening, with no extra provider acquisition. The repaired test preserves strict no-request proof on first open, permits only exact configured-view passive reads on later opens, and retains every exact provider-acquisition and Refresh/Retry assertion.
The Slack Gateway log showed a 26.8-second synchronous
chat.startup.history_pagestall, not a demonstrated 29-second database-admission lock. Its import-only warmup did not execute history projection. The fixture now awaits a real read through the same trusted-proxy Control UI admission before starting browser assertions. No timeout or production behavior changes; identity substitution, unknown references, code spans, and live append assertions remain intact. Exact cold subcall attribution remains unproven.Local proof passes: catalog file 3/3 tests, Slack identity file 1/1 test, UI typecheck, focused formatting and fresh independent P0–P2 review. The warmup initially failed with the generic test client’s manual-pairing requirement; the final client uses the same trusted-proxy Control UI admission as the browser. Final full CI 42239973742 passed on f44e4f3.
The baseline-ratchet job in run 42237705494 reported a +20 test-line delta, four lines above the effective ceiling.
config/test-lines-allocations/webkit-idle-fixtures.txtallocates exactly those 20 justified fixture lines; the shared baseline is unchanged. The staged local ratchet and independent allocation review pass.Completed run 42237705494 passed both real-Gateway shards (jobs 127960365817 and 127960365884) and the other UI tests. Only the test-line ratchet and its aggregate failed. Final allocation-only head f44e4f3 passed full CI 42239973742.