Skip to content

perf(ui): defer remaining Cron page English - #175019

Merged
steipete merged 2 commits into
mainfrom
solid2/w-perf-boot-second-pass
Oct 17, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-perf-boot-second-pass

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Chat and New Session still loaded Cron editor/history copy before the user opened Automations. Move the remaining cold objects into the existing en-cron registrar. Shared payload validation errors stay eager; the same registrar still owns Cron fallback, with empty namespace anchors preserving catalog order.

Evidence

Paired strict production builds on the same machine, base 16e16255e39076a0f22161564d82e1465956719c:

Proof Base Head Saved
Startup JS gzip 340,961 B / 7 requests 337,918 B / 7 3,043 B
Chat boot JS gzip 1,585,567 B / 30 1,582,560 B / 30 3,007 B
New Session boot JS gzip 1,282,844 B / 27 1,279,818 B / 27 3,026 B
Startup CSS requests 1 1 unchanged

Ratchet hard caps to 340,000 B startup, 1,590,000 B Chat and 1,290,000 B New Session. The startup baseline is regenerated through the canonical command with the measured reason. No loading boundary or visual behavior changes; no screenshots required.

Validation: pnpm tsgo:ui; the changed cron-suggestions-loading.test.ts once with one worker; pnpm ui:i18n:baseline (no raw-copy delta); paired pnpm ui:build and strict ui:check-performance; scoped format and git diff --check; production pnpm deadcode:knip passed. Independent review found no actionable P0–P2 issues. The fallback test covers delayed page labels, eager validation errors and translated-copy precedence.

Simplification: reuse the existing registrar, without another loader or state. Production catalog LOC 4,821 → 4,832 (+11 required namespace anchors); test LOC +4. All nine Solid refactor checklist counts remain 0 → 0 (controllers, effects, render effects, untrack, listeners, queries, class strings, flush, ownership escapes). This is a loading change; the moved copy is identical.

Boot graph evidence — base 16e1625

Strict production asset accounting: Chat 1,585,567 B / 30 JS requests; New Session 1,282,844 B / 27 JS requests. Startup 340,961 B / 7 JS requests / 1 CSS.

Module/package figures below are separately gzipped source-map spans, non-additive attribution estimates, not transferable-byte shares. Actual compressed chunk totals are authoritative. Package rows combine per-module estimates; UTF-16 generated columns are respected. Classification names current use, not a claim that the entire module can be deferred unchanged.

Chat — top 30 modules/packages

Module/package Estimated gzip B Classification
typebox 77,216 unclear (mixed live/cold)
ui/src/i18n/locales/en.ts 51,279 unclear (mixed live/cold)
protocol schemas / readers 50,986 unclear (mixed live/cold)
zod 32,554 unclear (mixed live/cold)
highlight.js 30,125 unclear (fenced-code content only)
@solidjs/signals 27,072 first-paint-required
entities 16,869 first-paint-required (formatted message)
markdown-it 15,929 first-paint-required (formatted message)
markdown-it-emoji 15,293 unclear (mixed live/cold)
dompurify 11,175 first-paint-required (formatted message)
micromark-core-commonmark 11,149 first-paint-required (formatted message)
@zag-js/menu 8,849 unclear (mixed live/cold)
@tanstack/virtual-core 7,283 first-paint-required
@solidjs/web 7,110 first-paint-required
@zag-js/dom-query 6,816 unclear (mixed live/cold)
ui/src/app/app-root.tsx 6,547 first-paint-required
@zag-js/vanilla 6,181 unclear (mixed live/cold)
@noble/hashes 5,899 first-paint-required
remend 5,870 first-paint-required (formatted message)
src/infra/update-run-report.ts 5,868 unclear (background status / diagnostics)
ui/src/pages/chat/chat-pane-render.ts 5,367 first-paint-required
ui/src/pages/chat/components/chat-composer-view.tsx 5,263 first-paint-required
jsonc-parser 5,137 unclear
micromark 4,866 first-paint-required (formatted message)
ui/src/pages/chat/components/chat-composer-queue.tsx 4,664 unclear (conditional controls / actions)
@openclaw/uirouter 4,602 first-paint-required
ui/src/pages/chat/components/chat-composer-controls.tsx 4,590 unclear (conditional controls / actions)
ui/src/pages/chat/components/chat-transcript-projection.ts 4,582 first-paint-required
ui/src/components/icon-data.ts 4,540 unclear (mixed live/cold)
ui/src/app/app-shell-view.tsx 4,440 first-paint-required

Largest production chunks

Chunk Actual gzip B
assets/control-ui-boot-shared-DycA8MGJ.js 178,251
assets/control-ui-boot-shared-zkI2FllI.js 174,695
assets/control-ui-core-BwXtNapm.js 149,029
assets/control-ui-boot-chat-B5Ct41gC.js 140,222
assets/control-ui-boot-chat-CIzAusoS.js 137,560
assets/control-ui-core-BTF-0-J8.js 105,356
assets/control-ui-boot-shared-Ds8QefCP.js 81,212
assets/markdown-runtime-hYbTERMR.js 78,127
assets/ui-Ge-eViK2.js 77,128
assets/control-ui-boot-shared-TKFXYKL-.js 64,213
assets/control-ui-boot-shared-D6WkjTxd.js 61,453
assets/control-ui-boot-chat-DG3UVEaq.js 46,167

New Session — top 30 modules/packages

Module/package Estimated gzip B Classification
typebox 77,216 unclear (mixed live/cold)
protocol schemas / readers 51,287 unclear (mixed live/cold)
ui/src/i18n/locales/en.ts 51,279 unclear (mixed live/cold)
zod 32,554 unclear (mixed live/cold)
highlight.js 30,125 unclear (fenced-code content only)
@solidjs/signals 27,072 first-paint-required
entities 16,869 interaction-only
markdown-it 15,929 interaction-only
markdown-it-emoji 15,293 unclear (mixed live/cold)
dompurify 11,175 interaction-only
micromark-core-commonmark 11,149 interaction-only
@zag-js/menu 8,849 unclear (mixed live/cold)
@solidjs/web 7,110 first-paint-required
@zag-js/dom-query 6,816 unclear (mixed live/cold)
ui/src/app/app-root.tsx 6,547 first-paint-required
@zag-js/vanilla 6,181 unclear (mixed live/cold)
@noble/hashes 5,899 first-paint-required
remend 5,870 interaction-only
src/infra/update-run-report.ts 5,868 unclear (background status / diagnostics)
ui/src/pages/chat/components/chat-composer-view.tsx 5,263 first-paint-required
jsonc-parser 5,137 unclear
micromark 4,866 interaction-only
ui/src/pages/chat/components/chat-composer-queue.tsx 4,664 unclear (conditional controls / actions)
ui/src/pages/new-session/composer.tsx 4,648 unclear
@openclaw/uirouter 4,602 first-paint-required
ui/src/pages/chat/components/chat-composer-controls.tsx 4,590 unclear (conditional controls / actions)
ui/src/components/icon-data.ts 4,540 unclear (mixed live/cold)
ui/src/app/app-shell-view.tsx 4,440 first-paint-required
ui/src/i18n/locales/en-new-session-setup.ts 4,360 unclear (conditional controls / actions)
ui/src/components/select-picker-view.tsx 4,339 unclear (conditional controls / actions)

Largest production chunks

Chunk Actual gzip B
assets/control-ui-boot-shared-DycA8MGJ.js 178,251
assets/control-ui-boot-shared-zkI2FllI.js 174,695
assets/control-ui-core-BwXtNapm.js 149,029
assets/control-ui-boot-new-Bvk4hv4R.js 106,139
assets/control-ui-core-BTF-0-J8.js 105,356
assets/control-ui-boot-shared-Ds8QefCP.js 81,212
assets/markdown-runtime-hYbTERMR.js 78,127
assets/ui-Ge-eViK2.js 77,128
assets/control-ui-boot-shared-TKFXYKL-.js 64,213
assets/control-ui-boot-shared-D6WkjTxd.js 61,453
assets/control-ui-boot-shared-PRwziKc2.js 42,855
assets/control-ui-boot-shared-B1kWjLaB.js 41,971

Requested category audit

Category Observed boot status
Solid runtime One installed rc.14 runtime; first paint needs it.
Zod 28,613 B actual shared config chunk; snapshot validation required. JSON-schema conversion machinery rides with classic schemas.
TypeBox / JSON schema Mixed builders/interpreter/compiler, 42,855 B actual shared chunk also containing Remend; individual package attribution is approximate. Incoming event validation required; broad schema construction is a candidate.
Protocol/type maps Runtime schemas/readers retained through shared imports; type-only imports erase. No second installed schema engine version found in prior pass.
Markdown / sanitization 78,127 B actual markdown runtime; required for formatted transcript but not empty composer.
Highlighting 14 registered languages plus core; ~30,125 B span estimate. Grammar loading follows markdown import, not actual fenced-code language.
Locales Only English base eagerly loaded (~51,279 B span estimate); other 21 locale pairs stay outside both graphs. English contains cold page copy.
Icons ~4,540 B core + ~4,230 B tools span estimates; mixed first-paint/actions.
Date/number formatting Native Intl; no date-fns, moment, dayjs, or bundled CLDR in either graph.
Emoji Full markdown-it-emoji data (~15,293 B), shared with emoji picker/rendering; candidate but picker/composer ownership overlaps other lanes.
Mermaid / terminal / board / MCP / diff / PDF Mermaid and terminal vendors outside both graphs. MCP host runtime and board renderer deferred; small entry/preview code remains. PDF uses native iframe, no PDF.js. No dedicated diff-viewer vendor.

Next bounded win: move remaining Cron page English into its existing lazy registrar, retaining the shared payload validation error namespace used by the eager owner. This removes cold copy without changing validation or rendering semantics.

CI caught four missing cron.runNotStarted translations in the shared action owner. Those five outcome strings now remain eager beside validation errors; the directly affected action-feedback suite passes all 8 tests. Final paired figures above include this repair.

Exact-head CI attribution

Full CI run 38998465758 on repaired head 46c6d6f08703 passed the scoped Cron regressions and all checks except four unrelated UI E2E shards. The exact CI merge dc8e7f36dfc3 has main parent 7d3a763f92e2. A one-worker replay on that main parent reproduces 11 failures; the unchanged Alice/Bob keyboard-focus case passes locally and is recorded as an unrelated CI-only timeout, not a reproduced or repaired failure. Native inherited/admin recovery retains this failed result.

  • Job 117296383742: The publication case reproduces on the actual main parent: compact PR rows now expose Dismiss inside PullRequestActions rather than as the direct button at test line 495 (main 789c8c0). Alice/Bob is a separate focus-only CI assertion at line 188 after Home/ArrowDown; it passed the focused baseline run in 3800 ms, so no baseline-failure claim is made. Its E2E, capability-menu, menu and focus-machine sources are unchanged in the tested Cron merge; the Cron-only catalog extraction does not change those focus owners or skill data. The same case also passed the other PR CI run. This extra failure is plainly unrelated to Cron and remains recorded, not masked or claimed repaired.
    • ui/src/e2e/chat-pr-publication-state.e2e.test.ts > Control UI PR publication state > recovers shared receipts and observes committed status without publishing
    • ui/src/e2e/chat-skill-library.e2e.test.ts > Session skill library selections > keeps Alice's private pin while Bob browses with operator access
  • Job 117296383779: The sole restart-recovery case reproduces on the actual main parent with the same unmet notice selector. Main d5c7055 groups notices in a collapsed ChatSystemEvents disclosure and only mounts nested events when expanded; the test waits for .chat-notice containing System · restart recovery without opening that group. Its test and production notice owners are unchanged by this PR.
    • ui/src/e2e/chat-retry-failure.e2e.test.ts > Control UI retry and terminal failure > preserves restart partials and a neutral durable recovery notice through reload
  • Job 117296383789: All four viewport variants reproduce on the actual main parent with the same nested details.chat-notice-inline selector timeout. Main d5c7055 places plugin steering in a collapsed ChatSystemEvents group and only mounts its nested notice after expansion; the test still waits for the old direct notice. The test and actual grouping/notice owners are unchanged by this PR.
    • ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on light desktop
    • ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on dark desktop
    • ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on light mobile
    • ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on dark mobile
  • Job 117296383826: All five observed cases reproduce on the actual main parent. Main 789c8c0 makes compact numbers 'fix(macos): tighten the link-browser tab header #103469' rather than the test's full repo reference, and moves Dismiss into the row actions menu while all four viewport cases still directly trial-click .chat-pr__dismiss. The test, PR rows and Details owner are unchanged by this PR.
    • ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > shows detected PRs in Details with rate-limit staleness
    • ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 1440 in light
    • ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 1440 in dark
    • ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 390 in light
    • ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 390 in dark

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 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-10-17T03:24:19.741937Z 46c6d6f 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.

@clawsweeper

clawsweeper Bot commented Oct 17, 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 docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: L labels Oct 17, 2026
@steipete
steipete enabled auto-merge (squash) October 17, 2026 03:07
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 17, 2026
@steipete
steipete disabled auto-merge October 17, 2026 03:18
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR moves remaining Cron page English into the existing lazy registrar and tightens production asset budgets.

Example: Open Chat before visiting Automations.

  • Before: Reported startup JavaScript totals 340,961 B gzip, including unused Cron editor and history copy.
  • After: Reported startup JavaScript totals 337,918 B gzip; Cron page copy loads through its existing registrar.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is sound on inspection, with useful build measurements and consumer-level coverage but limited direct runtime evidence.
Proof confidence 🦐 gold shrimp (3/6) Maintainer-authored PRs are outside the ordinary contributor proof gate; paired production-build accounting supports byte savings, while the four inspected screenshots exercise a separate New Session change rather than Cron loading.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Chat and New Session download English editor and history copy before the user visits Automations.
Reason: The maintainer-authored direction extends an established loading pattern with measured savings and no new loader, option, or state owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR provides a focused loading improvement with no actionable code findings; required browser CI remains unresolved.

Priority: P3
Reviewed head: 46c6d6f08703c033a91fb24bada6565b4217e9c8

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No Cron-page browser scenario or base-failing run of the added assertions is supplied.
Agent review details

How this fits together

The Control UI translation manager reads shared English immediately, while lazy Automations consumers register page-specific English before rendering and preserve active-language translation precedence.

flowchart LR
  A[Control UI startup] --> B[Shared English catalog]
  C[Automations page import] --> D[Cron English registrar]
  D --> B
  B --> E[Translation manager]
  E --> F[Translated page labels]
Loading

Technical review

Best possible solution:

Retain the existing registrar and eager shared messages, then land the focused extraction through the normal CI policy.

Do we have a high-confidence way to reproduce the issue?

Current-main source eagerly includes the moved Cron objects, and the PR supplies paired production asset measurements; this review executed no target code.

Is this the best way to solve the issue?

Reusing the existing registrar is the smallest coherent solution, preserving shared messages, translation precedence, and catalog ordering.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c05055d29fa2.

Provenance checked

  • Cron lazy English registrar keeps the original intent (0ad702e: Keep automation starter prompts outside startup while preserving fallback, form values, and catalog order.)
  • Remaining eager Cron page objects changes intended behavior with a stated reason (unknown: Scoped git log searches and blame encountered unavailable historical blobs; no original requirement to keep these page-only objects eager was established.)
  • Production boot-byte limits keeps the original intent (8b466e8: Prevent eager-import growth from erasing measured loading improvements while retaining modest build headroom.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 8b466e8 adds scripts/check-control-ui-performance.mts:57 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8b466e894e70; files: scripts/check-control-ui-performance.mts)

PR surface

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

View PR surface stats
Area Files Added Removed Net
Source 2 267 256 +11
Tests 1 4 0 +4
Docs 1 3 3 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 7 7 0
Total 6 281 266 +15

Labels

Label changes:

  • add P3: This is a small startup-byte optimization that preserves displayed behavior and configuration.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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:

  • P3: This is a small startup-byte optimization that preserves displayed behavior and configuration.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 October 16, 2026, 11:38 PM ET / October 17, 2026, 03:38 UTC.

@steipete
steipete merged commit 84c8dae into main Oct 17, 2026
122 of 130 checks passed
@steipete
steipete deleted the solid2/w-perf-boot-second-pass branch October 17, 2026 03:47
@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 Oct 17, 2026
* perf(ui): defer remaining Cron page English

* fix(ui): keep cron action outcome translations eager
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. docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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