Skip to content

fix(ui): stop static loading placeholders from retaining animations - #194146

Merged
steipete merged 3 commits into
mainfrom
solid2/w-perf-webkit-ring-1106
Nov 6, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-perf-webkit-ring-1106

Conversation

@steipete

@steipete steipete commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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: none to the existing static-placeholder rule. The 37 effects are 13 initial /new placeholders 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.

Metric, ms/min; median / p95 One visible row, base → head Twenty visible rows, base → head
Chromium thread CPU 375.516 / 402.022 → 378.036 / 403.035 423.227 / 457.037 → 422.520 / 456.579
WebKit elapsed style work 5,890.391 / 6,377.652 → 2.653 / 3.191 6,489.402 / 6,784.745 → 4.481 / 5.221

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.

Base/base control, distribution median / p95 change One row Twenty rows
chromium +1.14% / +1.07% +0.81% / +1.28%
webkit -0.73% / -0.72% -1.24% / -0.39%

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.

WebKit Timeline events per 5-second window, median One row, base → head Twenty rows, base → head
Style passes 307 → 5 307 → 5
Composite records 302 → 10 302 → 10
Paint records 614 → 10 12,095 → 15

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-spin still 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

Check Result
UI build on base and head Pass
Strict performance check, same host Pass; startup JS 90,316 → 90,316 B normalized gzip (90,709 B served); one startup CSS request
Inline HTML +5 B gzip; no ceiling changed
UI and scripts typechecks Pass
Tooling test typecheck; production Knip Pass
Focused WebKit loading-animation regression Pass (1 file / 1 test)
Independent review No actionable P0–P2 findings

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:

node --import ./scripts/tsx.mjs scripts/bench-control-ui-engines.ts \
  --bundle-dir <base> --compare-bundle-dir <head> --control-bundle-dir <base> \
  --engines chromium,webkit --trace --viewport desktop --pairs 20 \
  --idle-warmup-ms 1000 --idle-duration-ms 5000 \
  --steps idle-sidebar-running-1,idle-sidebar-running-20 --output <proof-dir>

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_page stall, 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.txt allocates 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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XS labels Nov 6, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Disable 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.

  • Before: The author reports 37 detached running bootstrap shimmers despite the placeholders being visually static.
  • After: The author reports zero retained shimmers; the revised regression requires zero after both bootstrap and session churn.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is focused and source-supported; the diagnostic summary is useful, but the draft’s required behavior validation remains incomplete.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Visually static loading placeholders can retain invisible animations and cause continuing WebKit style work.
Reason: The change restores the original static-placeholder contract with one production declaration; the maintainer-authored direction is already established.

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
Reviewed head: 8ced38c98317d5ecbde20fbe9685c26248d57824

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The revised regression’s base-fail/head-pass result and completed production-UI performance and visual evidence are not supplied.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Static loading placeholders keeps the original intent (f3464c7: Paint a stable, data-free frame before application assets load, with placeholders explicitly intended to remain static.)
  • Native WebKit regression changes intended behavior with a stated reason (b9d3fb4: Detect detached native shimmers omitted by DOM animation APIs while allowing bounded bootstrap retention.)
  • Idle benchmark measurement window keeps the original intent (b11b610: Measure connected idle work through Node-side waits; subsequent controls and settlement handling were added in perf(ui): distinguish settled idle from hidden transition work #194095.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f3464c7 adds ui/index.html:353 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f3464c792dbf; files: ui/index.html)

PR surface

Source +1, Tests 0, Docs +6, Other +4. Total +11 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 4 4 0
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 2 15 11 +4
Total 5 26 15 +11

Preflight source

Source 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

Metric Value Why it matters
Benchmark option 1 new flag; default 30000 ms --idle-duration-ms supports bounded comparisons through the existing harness without changing the default measurement window.

Labels

Label changes:

  • add P2: The fix removes unnecessary browser animation work without changing visible loading behavior or session-ring motion.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The fix removes unnecessary browser animation work without changing visible loading behavior or session-ring motion.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the declared rotated comparisons and publish inspectable retention and visual results.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 6, 2026, 8:34 AM ET / 13:34 UTC.

@steipete

steipete commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

Chromium one-ring phases, base above head
WebKit one-ring phases, base above head

Twenty visible rings at five phases

Chromium twenty-ring phases
WebKit twenty-ring phases

Inspected full-page before/after overviews

Chromium one-ring full-page pair
WebKit one-ring full-page pair
Chromium twenty-ring full-page pair
WebKit twenty-ring full-page pair

@steipete
steipete marked this pull request as ready for review November 6, 2026 13:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T14:53:38.891028Z db363b7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 6, 2026 13:58
@steipete
steipete disabled auto-merge November 6, 2026 14:50
@steipete
steipete merged commit 5e2c66f into main Nov 6, 2026
124 of 126 checks passed
@steipete
steipete deleted the solid2/w-perf-webkit-ring-1106 branch November 6, 2026 15:22
@steipete

steipete commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
…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
RomneyDa added a commit that referenced this pull request Nov 15, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant