Skip to content

perf(ui): skip the empty initial operator accent projection - #198911

Merged
steipete merged 2 commits into
mainfrom
solid2/w-webkit-boot-1114
Nov 14, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-webkit-boot-1114

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem and change

Normal Control UI startup projected accent colors twice when no operator seam was configured: config initialized the absent seam, then the theme owner projected the same palette again. The seam owner now skips the initial unchanged undefined value. Configured seams, removal, document-root changes with a configured seam, and user-accent priority retain their existing behavior. This extends #193954 without adding an application cache or state owner.

Adds an opt-in real-Gateway boot workload using existing synthetic fixture, admission, child-process and native Timeline helpers. It records connect/history/readiness phases, preserves cold versus warm runs, rotates base/head/control, and cleans up interrupted startup. No model is invoked. Optional style-read instrumentation was removed after CI caught a new suppression; native Timeline supplies the style evidence without adding an exception.

Proof

Check Result
Real Gateway, 20 rotated base/head/control triplets, Chromium/WebKit/Firefox, cold/warm 360/360 reached transcript and composer readiness. 400 stored messages; actual cold history returns 80, warm cursor resume returns 0 new messages over the retained cache.
WebKit Timeline, 20 separate traced triplets Warm final-document-to-connect script elapsed median/p95: 140.82/157.15 → 132.83/145.99 ms. Style elapsed: 25.30/29.18 → 20.35/21.52 ms. Style passes: 25 → 19. Identical-base control: 141.42 ms script, 25.74 ms style. Application elapsed, not thread CPU.
Real-Gateway tail confirmation, 10 more Chromium/Firefox triplets Combined 30 samples/arm: Chromium warm median/p95 218.2/247.7 → 211.8/244.8 ms; Firefox 464.5/498 → 457/511 ms. Firefox's +13 ms p95 is within the wider A/A spread; this is not an improved-tail claim.
100 ms RTT, production HTTP + synthetic Gateway, 20 triplets per engine 360/360 passed. Cold/warm medians: Chromium 820.8/741.3 → 820.0/737.8 ms; WebKit 954.0/780.0 → 943.5/772.5 ms; Firefox 1053.5/1076.0 → 1052.0/1074.0 ms. All p95s held or improved.
Build and strict base comparison Startup unchanged at 90,922 B normalized gzip, 3 JS requests and 1 CSS request (40,757 B gzip). Shared chunk −1 B. No ceilings raised; existing absolute overages remain unchanged.
Focused tests Presentation: 7 passed; added regression fails with the original guard. Suppression inventory after repair: 14 passed.
Typecheck, lint, Knip UI typecheck, targeted UI/scripts lint and formatting pass. Production and full-tree Knip scans: 0 unused files. Local script typecheck retained the baseline state-read-worker-bench.ts:373 TS18048; current PR CI typecheck passes.
Benchmark lifecycle SIGTERM during second Gateway startup: exit 143, both Gateway groups gone, port reusable; 12.27 s including setup. Final trace smoke: 6/6 ready, no page errors, all document/connect/ready markers retained.
Independent review Final source and the CI repair are scoped-clean at P0–P2.
Exact-head CI Run 43609861593: 45 jobs passed, 24 skipped, two inherited E2E jobs failed (plus the combined gate). The repaired suppression guard, typecheck, all UI unit shards, security-fast and both real-Gateway shards passed.

Whole-boot timing changes are smaller than the A/A spread; the claim is reduced warm pre-connect work. Most of the WebKit/Chromium gap remains. Twenty additional WebKit ephemeral/persistent/control triplets all reached readiness: warm pre-connect medians 196/190.5/193 ms, with JavaScript transfer falling from 4.25 MB cold to 28 KB warm in both context types. Persistent contexts did not remove the gap. These observations do not establish bytecode hits/misses or an engine floor. Service-worker-enabled full-app measurements remain unqualified; accepted runs explicitly block workers to match the census. No upstream report was filed.

Nine WebKit observations in the main comparison retained an outgoing-document warning: stale-chunk recovery tried /index.html during navigation (base 5, head 2, control 2). All new documents reached readiness. The cache diagnostic retained eight matching warnings. These are not presented as zero-error runs.

Local provenance: UI base 4438c1816940375b3c7ff24868f8549f2e1d1f8c; candidate UI guard unchanged in b82d62f71926. Both arms used the same real Gateway runtime built from 7bccde609cbb0eaa054ac07a6d5ccd91ec712a92; the intervening UI changes did not change its wire contract. That runtime build emitted runnable artifacts but retained the baseline worker-module budget failure (240 vs 220); exact-head CI supplies current integration proof.

Reproduce with BOOT_BASE=<base-ui-root> BOOT_HEAD=<head-ui-root> BOOT_OUT=.artifacts/boot BOOT_PAIRS=20 node --import ./scripts/tsx.mjs scripts/perf/control-ui-live-boot.ts; add BOOT_TRACE=1 BOOT_ENGINES=webkit for native Timeline collection. Builds used NODE_DISABLE_COMPILE_CACHE=1 OPENCLAW_BUILD_CACHE=0 pnpm ui:build.

Production LOC: 325 → 326; tests: 320 → 340; benchmark: 0 → 514 (net +535). The benchmark growth owns fixture setup, phase observation, rotation and cleanup; application machinery stays unchanged. Solid checklist counts for controllers, effects, render effects, untrack, direct listeners, DOM queries, flush and owner APIs all remain 0 in the touched production owner.

Synthetic before and after

Chromium cold boot at 100 ms RTT. Rendered appearance is unchanged.

Before: synthetic cold boot at 100 ms RTT

After: synthetic cold boot at 100 ms RTT

Inherited CI failures

The three failing names also fail in the latest completed scheduled-main run 43610133604:

  • chat-history-reading-stability.e2e.test.ts — “keeps loaded older history still while reading upward (webkit, 390 px)”
  • new-session-page.model-picker-spacing.e2e.test.ts — “keeps the empty model picker beside Dictate at 390 pixels” (46 px versus the 32 px maximum)
  • chat-flow.streaming.e2e.test.ts — “keeps the pending telemetry row stable through acknowledgement and streaming” (null avatar at line 318)

The spacing assertion also fails identically against the pre-change bundle. Telemetry passes isolated local base/head runs and a full eight-test base-file run; those replays are not represented as a fix. All listed failure inputs are unchanged between the tested CI baseline and merge. The native inherited-failure route retains the failed CI result; no assertion or budget is relaxed.

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

clawsweeper Bot commented Nov 14, 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.

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T14:30:28.429586Z a90a9b7 PR opened
ℹ️ 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: L labels Nov 14, 2026
@steipete
steipete enabled auto-merge (squash) November 14, 2026 14:36
@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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head a90a9b77f568a7b083ece26a1c3ed334d2ca86b1, but the PR head is now b82d62f719260a55b4aeb9981ce5a9b8b9b20b09. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-14T14:52:25.079Z sha a90a9b7 :: needs maintainer review before merge. :: none

@steipete
steipete disabled auto-merge November 14, 2026 15:13
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 14, 2026
@steipete
steipete merged commit baeeeb5 into main Nov 14, 2026
132 of 139 checks passed
@steipete
steipete deleted the solid2/w-webkit-boot-1114 branch November 14, 2026 16:40
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…#198911)

* perf(ui): skip the empty initial operator accent projection

* refactor(perf): drop optional boot style-read counter
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. scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant