Repository navigation
perf(ui): skip the empty initial operator accent projection - #198911
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 Summary: ✅ CompletedThis 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. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…#198911) * perf(ui): skip the empty initial operator accent projection * refactor(perf): drop optional boot style-read counter
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
undefinedvalue. 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
state-read-worker-bench.ts:373TS18048; current PR CI typecheck passes.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.htmlduring 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 inb82d62f71926. Both arms used the same real Gateway runtime built from7bccde609cbb0eaa054ac07a6d5ccd91ec712a92; 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; addBOOT_TRACE=1 BOOT_ENGINES=webkitfor native Timeline collection. Builds usedNODE_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.
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.