Repository navigation
perf(ui): defer remaining Cron page English - #175019
Conversation
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. |
|
🦞👀 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 changesThis PR moves remaining Cron page English into the existing lazy registrar and tightens production asset budgets. Example: Open Chat before visiting Automations.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +11, Tests +4, Docs 0, Other 0. Total +15 across 6 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 October 16, 2026, 11:38 PM ET / October 17, 2026, 03:38 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* perf(ui): defer remaining Cron page English * fix(ui): keep cron action outcome translations eager
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-cronregistrar. 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: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 changedcron-suggestions-loading.test.tsonce with one worker;pnpm ui:i18n:baseline(no raw-copy delta); pairedpnpm ui:buildand strictui:check-performance; scoped format andgit diff --check; productionpnpm deadcode:knippassed. 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
typeboxui/src/i18n/locales/en.tsprotocol schemas / readerszodhighlight.js@solidjs/signalsentitiesmarkdown-itmarkdown-it-emojidompurifymicromark-core-commonmark@zag-js/menu@tanstack/virtual-core@solidjs/web@zag-js/dom-queryui/src/app/app-root.tsx@zag-js/vanilla@noble/hashesremendsrc/infra/update-run-report.tsui/src/pages/chat/chat-pane-render.tsui/src/pages/chat/components/chat-composer-view.tsxjsonc-parsermicromarkui/src/pages/chat/components/chat-composer-queue.tsx@openclaw/uirouterui/src/pages/chat/components/chat-composer-controls.tsxui/src/pages/chat/components/chat-transcript-projection.tsui/src/components/icon-data.tsui/src/app/app-shell-view.tsxLargest production chunks
assets/control-ui-boot-shared-DycA8MGJ.jsassets/control-ui-boot-shared-zkI2FllI.jsassets/control-ui-core-BwXtNapm.jsassets/control-ui-boot-chat-B5Ct41gC.jsassets/control-ui-boot-chat-CIzAusoS.jsassets/control-ui-core-BTF-0-J8.jsassets/control-ui-boot-shared-Ds8QefCP.jsassets/markdown-runtime-hYbTERMR.jsassets/ui-Ge-eViK2.jsassets/control-ui-boot-shared-TKFXYKL-.jsassets/control-ui-boot-shared-D6WkjTxd.jsassets/control-ui-boot-chat-DG3UVEaq.jsNew Session — top 30 modules/packages
typeboxprotocol schemas / readersui/src/i18n/locales/en.tszodhighlight.js@solidjs/signalsentitiesmarkdown-itmarkdown-it-emojidompurifymicromark-core-commonmark@zag-js/menu@solidjs/web@zag-js/dom-queryui/src/app/app-root.tsx@zag-js/vanilla@noble/hashesremendsrc/infra/update-run-report.tsui/src/pages/chat/components/chat-composer-view.tsxjsonc-parsermicromarkui/src/pages/chat/components/chat-composer-queue.tsxui/src/pages/new-session/composer.tsx@openclaw/uirouterui/src/pages/chat/components/chat-composer-controls.tsxui/src/components/icon-data.tsui/src/app/app-shell-view.tsxui/src/i18n/locales/en-new-session-setup.tsui/src/components/select-picker-view.tsxLargest production chunks
assets/control-ui-boot-shared-DycA8MGJ.jsassets/control-ui-boot-shared-zkI2FllI.jsassets/control-ui-core-BwXtNapm.jsassets/control-ui-boot-new-Bvk4hv4R.jsassets/control-ui-core-BTF-0-J8.jsassets/control-ui-boot-shared-Ds8QefCP.jsassets/markdown-runtime-hYbTERMR.jsassets/ui-Ge-eViK2.jsassets/control-ui-boot-shared-TKFXYKL-.jsassets/control-ui-boot-shared-D6WkjTxd.jsassets/control-ui-boot-shared-PRwziKc2.jsassets/control-ui-boot-shared-B1kWjLaB.jsRequested category audit
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.runNotStartedtranslations 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
46c6d6f08703passed the scoped Cron regressions and all checks except four unrelated UI E2E shards. The exact CI mergedc8e7f36dfc3has main parent7d3a763f92e2. 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.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 publishingui/src/e2e/chat-skill-library.e2e.test.ts > Session skill library selections > keeps Alice's private pin while Bob browses with operator access117296383779: 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 reload117296383789: 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 desktopui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on dark desktopui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on light mobileui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on dark mobile117296383826: 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 stalenessui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 1440 in lightui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 1440 in darkui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 390 in lightui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 390 in dark