Skip to content

perf(ui): defer optional root English copy - #181868

Merged
steipete merged 3 commits into
mainfrom
solid2/w-perf-root-copy
Oct 23, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-perf-root-copy

Conversation

@steipete

@steipete steipete commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Control UI startup loads route subtitles, automation validation/outcome copy, and command responses before the corresponding features use them.

User Impact

The same English copy remains available on first use while startup, Chat, and New Session transfer less JavaScript. Requests and CSS are unchanged; no new loading state, configuration, permission, or migration is introduced.

Why This Change Was Made

Move 84 strings into the existing cold English registrars: 50 route subtitles, 31 automation labels/errors/outcomes, and three command responses. Each consumer registers fallback copy synchronously before translating. The canonical catalog preserves all 11,350 ordered entries and namespace object identity. No domain owner or duplicate catalog is added.

Evidence

Prior measured head: d457b771b0334522305577ab1dfb0d7135e60665; measured base: bf93c438e2fc20a5e97f4502a3b2c1220e0c1ba3. Main was merged without replaying commits; the sole conflict was the performance budget, resolved by preserving main's tighter caps and then ratcheting from the newly measured savings.

Two production builds on the same machine use Node 24.22.1, identical fixed build metadata, and the same 29 hash-pinned plugin inputs. These are shipped sidecar bytes, not summed module diagnostics.

Surface JS raw bytes JS gzip bytes JS Brotli bytes JS requests
Startup 878,044 → 873,453 282,747 → 281,233 (−1,514) 257,318 → 255,928 7 → 7
Chat 4,102,756 → 4,098,211 1,269,817 → 1,268,099 (−1,718) 1,127,193 → 1,125,842 20 → 20
New Session 2,491,156 → 2,486,611 763,598 → 761,956 (−1,642) 683,286 → 682,081 16 → 16

CSS is identical: startup 40,195 B/1 request; Chat 137,169 B/3; New Session 100,662 B/3. The strict performance check has no warnings or violations. Startup baseline is officially ratcheted to 281,233 B; Chat/New caps preserve the previous relative headroom at 1,357,842/797,395 B. No cap is loosened.

Cold-load proof

The predeclared rule is ten strictly alternating baseline/candidate cold-cache pairs using the committed real-Gateway workload, gzip, 240 synthetic messages, and no profiling. Both readiness medians must be ≤1.05× baseline and neither p95 may worsen. All 20 observations are retained; no extra batch was needed.

Run 40021790056, measured source 777c86071a17004888c710112e3fdca7eb865b6c against 808d7141c71e3145de26d329fd1386a2d6e38243, passed:

Milestone Base median / p95, ms Candidate median / p95, ms Result
First nonempty transcript 1,626.15 / 2,353.30 1,503.70 / 2,036.60 Pass
First enabled composer 848.25 / 1,191.60 793.75 / 1,002.20 Pass

All 1,080 transport receipts match the immutable raw/gzip asset manifest; all samples have the same 54 application-script responses (plus seven unchanged synthetic plugin responses). Runtime gzip is 1,365,567 → 1,364,053 B. There are no harness warnings, excluded observations, overlapping remote workloads, or active leases. The source extraction is unchanged by integration; these are prior-head timing receipts, not a claim of new integrated-head CI or a repeated timing run.

The complete module attribution and owning-feature first-paint analysis are in #181052; this change shrinks the existing root English module without adding boot modules. Synthetic before/after images below were fully inspected and contain no real conversations or account data.

Check Result
Initial focused tests 24 passed across navigation, Cron fallback, and root-copy loading; single-file runs
Initial source checks UI/tooling types, lint, i18n baseline/verification, production Knip, and independent review passed
Integrated UI typecheck Passed
Integrated strict budgets, format, diff Passed
Integrated production Knip / independent review Passed; no P0–P2 findings
Prior exact-head full CI 40013326443 passed; integrated-head result recorded below

Integrated-head CI follow-up

Run 40023828684 completed with one failing Real-Gateway test: Delegated task PRs through a real Gateway > shows three persisted descendant PRs while keeping the parent branch unpublished (ui/src/e2e/task-pull-requests.real-gateway.e2e.test.ts:451). The other 39 tests in that shard and all other jobs passed. The hovercard and foreground subscription are ready, but the observed snapshot retains three receipt-only PR rows without nested pullRequest metadata.

The exact test passed on the initially inspected scheduled main run 40020064421. The coordinator subsequently identified the known intermittent failure and authorized one rerun:

The "three persisted descendant PRs" case is a known intermittent flake: it also failed on unrelated #181477 and passed there on a single rerun. That counts as the diagnosis.

The coordinator reran the failed job by REST. Attempt 2 failed the same test at the same assertion in job 120666221787; the other 39 cases in that shard passed. CI tested merge 1846fa40ea3932e8e4d3c34094d5b54af9867ff0 combines main 4e26493aafd06079dc94195f03b871bba6c3c618 with PR head d457b771b0334522305577ab1dfb0d7135e60665.

The requested local comparison ran only this case, serially in H/B/H/B order, with isolated state and Chromium. The repository wrapper prepared matching private-QA runtime/UI assets. Pair 1 used the ordinary local E2E configuration; pair 2 reused each checkout's validated prebuilt assets. Both used the pinned default test runtime and one worker. No assertions or source files were changed.

Local attempt Source Result Case time
Head 1, ordinary config d457b77 Passed 28,663 ms
Main 1, ordinary config 4e26493 Passed 26,021 ms
Head 2, prebuilt config d457b77 Passed 26,521 ms
Main 2, prebuilt config 4e26493 Passed 25,673 ms

The newer completed scheduled main run 40027253564, at 04a964b26d6560bf5945ebb6ae90dd31c09eaacf, also passed this exact case in job 120666860595 (42,051 ms). The diagnostic change #181989 has now merged as 951d37328031e5b1fc6681eb5d0c810e7594b74d. It captures Gateway hydration stages, subscription frames, and failure-only UI records; it is observability, not a root-cause fix.

These are reproduction outcomes, not cold-load benchmark samples or a flake fix. With no matching main failure, the inherited/admin route is not selected. The coordinator revised the diagnosis after the second failure:

Two CI failures on the same head while main passes is evidence that #181868 may affect this case, not just flake noise.

Per that instruction, the accepted auto request was natively cancelled and its retirement confirmed before replacing the head. Current head d6d047d9aea7c6ade725957dbbce380d02594b7a merges main 2a7d1994c2a1477483661bc4af5cc90e4d76e8df without conflicts or replaying commits, and includes #181989. The same 30-file extraction remains. Fresh full CI passed on the replacement head; no diagnostic failure recurred. Fresh UI typecheck and production Knip passed. Full CI 40040129611 passed on this head. Both Real-Gateway shards passed; the exact descendant-PR case passed in job 120709407478 in 37,521 ms, and all 40 cases in that shard passed. openclaw/ci-gate and all applicable security checks are green. Native review/preparation is refreshed for replacement landing. No renewed auto request is claimed.

Matched fixed-input production builds on the same host verify this integration:

Surface Current main 2a7d199 Head d6d047d JS requests
Startup 282,830 B gzip 281,336 B gzip 7 → 7
Chat 1,271,053 B 1,269,882 B 20 → 20
New Session 763,798 B 762,431 B 16 → 16

Both sides pass their strict performance checks. Candidate startup, route JS, CSS and locale comparisons pass with no warnings or violations. Existing tighter caps are preserved. CSS is unchanged at 40,195/137,074/100,662 B for startup/Chat/New Session. Earlier timing and detailed module attribution remain explicitly pinned to their measured commits.

LOC across the 30 changed files: 10,556 → 10,751 (+306/−111). Production growth is the existing catalog registration/composition wiring; tests protect cold first-use and object-identity contracts.

Before: synthetic Chat fixture

After: same synthetic Chat fixture

Final integrated feature-group attribution (all 95 active groups)

Measured at d457b771b0334522305577ab1dfb0d7135e60665: 1,761 unique emitted module identities. Source maps cover 98.27% of Chat raw bytes; the remaining 71,067 raw bytes are generated/bundler glue. Standalone module gzip is a non-additive diagnostic, not transferred bytes or marginal savings. Both route graphs include startup.

Feature Startup diagnostic gzip B Chat diagnostic gzip B New Session diagnostic gzip B First-paint judgment
Shared UI / Sidebar and session navigation 1,361 132,834 123,408 mixed: The visible rail, session rows, unread/selection state and restored navigation are first-render UI on both routes. Menus, hovercards, organization and some people/board views depend on interaction or selected content.
Chat / Session and route coordination 1,905 78,220 7,498 mixed: State, route selection, active run continuity and rendering orchestration are needed before painting the selected session; some notices and secondary controls are conditional.
Vendor / Markdown parsing and repair 0 75,928 27,318 mixed/content-and-interaction: Chat needs MarkdownIt and Remend for visible rich text. New Session retains mdast/micromark normalization and supporting utilities through shared consumers; MarkdownIt and Remend are Chat-only. The shared Markdown renderer and markdown-it-emoji are absent from New Session; markdown-it-emoji is also absent from Chat.
Shared domain / Sessions 50,364 68,611 61,414 mixed: Selected session identity, boot roster and reconciliation are needed immediately; mutations and secondary catalogs are not all required before visible transcript.
Chat / Pane composition and lifecycle 0 68,509 1,618 mixed: Selected pane layout, readiness and disposal are first-paint requirements. The class composition also imports optional pane features.
Chat / Composer 0 62,407 24,418 mixed: Textarea, draft, submission affordance and basic keyboard behavior are first-paint. MCP catalogs, emoji/mention menus and capability views depend on content or interaction.
App / Shell, routing and bootstrap 27,482 58,399 58,466 first-paint: The shell, router and application context own the first usable UI and are also shared with non-Chat routes.
Chat / Message rendering 0 56,486 5,215 content-type: The visible message bubble/group and sanitization are first-paint for the selected transcript. Tool/plugin/permission branches are content-dependent.
Chat / Transcript and scrolling 0 54,114 1,326 first-paint: Message projection, visible range, virtualizer, anchors and scroll restoration determine which transcript is visible and where.
Shared domain / Core contracts and helpers 17,399 49,674 42,235 mixed: This explicitly broad residual group contains command parsing, redaction, retry, URL/network policy, status and shared contracts; modules are listed individually in the ledger.
Vendor / Solid runtime 48,642 48,642 48,642 first-paint: Reactive graph, DOM rendering and owner disposal are needed by the first shell and Chat render.
Shared UI / Overlays and pickers 11,049 40,035 34,817 mixed: Trigger labels/tooltips may appear initially; option lists and modal bodies are interaction-only. The existing primitives own focus, dismissal and native occlusion.
Chat / History and loading 3,493 38,277 9,771 first-paint: Route loader, snapshot and history settlement determine the first transcript, including restored sessions.
Gateway / Protocol and validation 17,740 35,802 29,597 first-paint: Gateway connection, typed frame parsing, request validation and authority feed the initial session snapshot. Some secondary-method validators are feature-specific.
Media and attachments 2,091 33,017 14,949 mixed/content-and-interaction: Visible transcript attachments need basic media normalization and previews; a restored New Session draft may also contain attachments. Camera, acquisition, downloads and full image viewing are interaction-only.
Shared domain / Utilities 15,102 31,101 28,465 mixed: Formatting, DOM reconciliation, connection helpers and identity utility code support first render; toast, downloads and speech have later effects. This is a named residual utility group with full per-module disclosure.
Chat / Send and outbox 0 30,100 1,472 mixed: Draft submission and queued/restored pending messages must be usable immediately. Recovery dialogs and explicit retry/discard action views need only load when present.
Plugin presentation / MCP apps 7,690 29,435 13,449 mixed/content-and-interaction: A published plugin surface can be visible in the initial shell, message or composer. A plain session does not need catalog discovery, resource browsing or launch UI. New Session still loads common plugin presentation through the shell. This existing group also owns inline plugin views: structured descriptor validation and row projection preserve transcript semantics, while guest presentation is needed only for visible plugin-view content. The inline owner retains height when offscreen or hidden; this attribution does not establish a further safe deferral.
Chat / Header and menus 0 27,059 1,281 mixed: Session title, status and primary navigation paint initially. Session menu entry construction and secondary actions need a menu opening or action. New Session retains only a small shared header helper subset.
Shared UI / Markdown rendering 0 25,071 0 content-type: Chat needs the normal rich-text renderer for visible Markdown. JSON, table actions, code decorations and details depend on syntax or interaction. This group is entirely absent from New Session.
Chat / Detail panels and workspace 0 23,746 0 mixed: Chat layout and restored/auto-docked detail selection can affect the initial transcript. File/PR/subagent detail actions are unnecessary for a plain closed-panel session. This group is absent from New Session.
Shared domain / Text and session normalization 10,287 23,599 22,201 first-paint: Visible-text filtering, reasoning/tool-markup stripping and canonical session references define the transcript shown on reload.
Shared domain / Chat durable state 1,170 22,609 20,299 mixed: Restored draft/outbox metadata must survive reload and be available before editing. Export/discard/recovery operations do not all execute at first paint.
Shared UI / Primitives and controls 4,011 20,819 21,405 mixed: Icons, loading/error states, shadow styling and basic controls serve first paint; other controls can be consumer-specific.
Shared domain / Chat normalization and commands 1,269 20,106 12,947 mixed: Imported transcript normalization and sender/content interpretation are first-paint. Slash command lookup and some editing helpers are interaction-dependent.
App / Platform, updates and background integrations 13,945 19,991 19,759 mixed/background: Connection/auth recovery and native listeners may be prerequisites for a usable first render; explicit push subscription, update details and some platform actions occur later. Both routes retain this shared owner.
Chat / Sharing and annotations 0 18,671 0 mixed: Persisted annotations/reactions may appear initially; export/share dialogs, new comments and selection popups are interaction-only.
Chat / Model and permission controls 0 18,409 13,276 mixed: Selected model, effort and permission labels, plus the enabled-state decision, are needed for both composers. Searching, option lists and provider review bodies follow interaction or a specific rejection.
Shared domain / Config 16,306 17,430 17,430 mixed: The runtime config capability is created at bootstrap and supplies accepted values/reload protection. Editor drafts, schema operations and write coordination are not ordinary text transcript rendering.
Claw and Workboard 1,819 17,192 1,819 mixed: A normal conversation does not need board widget/render actions. Persisted board face or a selected board route can need them immediately.
Chat / Tool cards and streaming 0 16,912 0 content-type: A first visible tool-bearing message needs its collapsed card and current streaming/activity status. Plain text transcripts do not. This group is absent from New Session.
Gateway / Client transport 8,329 16,624 14,746 first-paint: WebSocket connection, pending request correlation, retries and session projection are required for first transcript and ongoing streaming.
Chat / Voice and realtime 0 16,407 10,827 interaction: Voice/dictation capture and device selection are unnecessary for an ordinary text draft; status and stop/cleanup may be needed for an already active capture. Both composers retain dictation support.
i18n / en 15,443 15,443 15,443 mixed: Common labels and English fallback remain available for first render on both routes. Route subtitles are needed when command-palette search or the owning route asks for them; executor-only slash-command result text is needed after executing that action. Those two catalogs now live outside all selected boot closures. Shared command-progress and fast-mode labels remain in the root catalog. Other root copy still has mixed first-paint and later-use responsibilities.
Other routes / Lazy route entry stubs and shared helpers 14,240 15,340 14,836 first-paint: Route descriptors and matching must know all destinations. Their emitted presence does not imply page bodies are loaded.
App / Gateway connection and authority 11,730 14,964 14,964 first-paint: Connection snapshots, auth scope, selected gateway and live authority are required for correct initial rendering and actions.
App / Settings and preferences 14,889 14,889 14,889 first-paint: Restored layout, theme, locale and per-session choices determine the first render. Mutation/reconciliation is also used outside settings pages.
Shared domain / Session presentation 763 14,542 9,101 content-type: Progress cards, pull requests, presence and display summaries can be visible in sidebar or transcript, depending on session data.
Icons / SVG data and presentation 183 14,065 13,600 mixed: Icons on visible controls are required, but a combined name-indexed registry includes tool/provider/brand paths unrelated to a plain transcript.
Shared domain / Agent and capability catalogs 7,371 13,962 13,962 mixed: Current agent identity and advertised capabilities may be first-paint. Full channel/configuration catalogs need not be presented immediately.
App / Theme and environment presentation 7,410 13,063 12,859 first-paint: Theme, typography and shell branding must be ready before first paint; delaying them creates visual and geometry changes.
App / Overlay and action owners 7,570 12,636 12,636 mixed: Pending approvals or questions can be present on reload; update and confirmation bodies are conditional. Current owners hold live authority.
Shared domain / Tool presentation 0 12,212 7,010 content-type: Exec titles, tool-call repairs and argument formatting are needed only for tool-bearing visible messages, though message normalization may invoke shared parts.
Boot / Entrypoints and generated glue 12,161 12,197 12,197 first-paint: Main entry, route paths, navigation and build identity are needed to locate and mount the selected UI.
Chat / Sidebar and split layout 2,854 11,836 2,854 mixed: Restored split placement and mobile shell affect transcript geometry immediately. Closed side-panel bodies are conditional.
Vendor / DOM sanitization 0 11,533 0 content-type: Sanitization is required before inserting generated Markdown/HTML from the transcript.
Chat / Questions and goals 0 10,634 0 content-type: A pending interactive question or restored goal can appear with the first visible messages; inactive editing UI is optional.
i18n / en-chat-session 0 8,598 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Shared domain / Markdown normalization 0 8,569 4,962 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Diff and terminal presentation 895 8,335 2,543 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
ui/src/pages/chat/components 0 8,223 0 consumer-dependent: See module ledger; conditional renderer or shared first-paint contract.
Vendor / Transcript virtualization 0 7,512 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-composer 0 6,577 6,577 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Shared UI / Assistant dock 0 6,515 6,515 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Shared domain / Model and account catalogs 1,727 6,503 6,429 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Shared domain / Reactive projections 2,044 6,359 5,720 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Chat / Browser and source previews 0 6,136 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Vendor / @noble/hashes 0 5,954 5,954 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-organization 0 5,117 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Vendor / jsonc-parser 0 5,080 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Vendor / @openclaw/uirouter 4,609 4,609 4,609 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Shared UI / Identity and activity 0 4,393 3,720 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Shared UI / Mascot 0 4,246 4,246 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Vendor / ipaddr.js 0 3,782 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
A2UI and Canvas surface integration 567 3,305 1,302 consumer-dependent: Static canvas groups contain surface lease/authority and frame-generation helpers, plus Chat’s canvas-render helper. They can support restored canvas state; this static ledger does not establish a rendered-widget count.
Vendor / typebox 0 2,910 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Shared UI / Browser and link preview 872 2,882 872 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-model-controls 0 2,280 2,280 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / runtime 2,188 2,188 2,188 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
Vendor / get-east-asian-width 0 2,023 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-command-palette 0 2,010 2,010 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-message-metadata 0 1,721 1,721 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-file-preview 0 1,569 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-placement 0 1,447 1,447 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-model-accounts 0 1,336 1,336 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-sidebar-attention 0 1,245 1,245 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-mcp 0 1,205 1,205 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-tool-labels 0 1,045 1,045 consumer-dependent: Visible tool messages only; shared tool consumer owns the registration.
i18n / en-mcp-app 0 963 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-agents-home 0 949 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
New Session / Shared entry and launch support 520 944 86,109 mixed: New Session needs the draft owner, textarea, target/agent/model labels, persisted draft and placement validation to enable the first composer. Submission/provisioning, connect-machine UI, catalog selection and browsing occur only for the chosen target or action. Chat loads only three shared launch helpers.
i18n / en-board 0 858 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-goals 0 856 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-navigation 0 774 774 consumer-dependent: Session navigation labels shown by the first visible shell/sidebar.
i18n / en-chat-provider-review 0 723 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-questions 0 680 0 consumer-dependent: Structured question messages only; relevant message consumer owns the registration.
i18n / en-new-session-runtime 0 648 648 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-media 0 541 0 consumer-dependent: Visible media controls; loaded with the relevant media consumer.
i18n / en-code-blocks 0 539 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-skill-library 0 527 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-machine 0 455 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-agents 356 356 356 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-people 0 158 0 consumer-dependent: Below 10 KB on both routes; follows its consuming feature.
ui/src/components/browser 0 94 0 consumer-dependent: See module ledger; conditional renderer or shared first-paint contract.
i18n / en-new-session-setup 0 0 4,257 consumer-dependent: Follows the listed consuming feature; below the required 10 KB assessment threshold.

Highlight.js/Shiki language modules, Zag machines, KaTeX/MathJax/Mermaid, and xterm modules are absent from the measured static Chat graph. Their absence does not prove that a specific message never loads them dynamically.

The remaining groups are not all first-paint-only. They include required initial-render code and conditional behavior whose further deferral has not demonstrated a safe gain. Rejected timing/retained-content experiments are not counted in the savings. The measured Chat graph remains 41,614 B above the original 15% target.

@clawsweeper

clawsweeper Bot commented Oct 23, 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.

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

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 🔄 Running since 2026-10-23T19:41:07.840509Z 777c860 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: M labels Oct 23, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR defers 84 English strings until their routes or command consumers load and tightens the corresponding performance budgets.

Example: Open Control UI, then search Settings for Appearance.

  • Before: Startup transfers 282,747 gzip bytes of JavaScript, including the unused route subtitles.
  • After: Startup transfers 281,233 gzip bytes; Settings search still displays “Theme and UI settings.” on first use.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused, measured optimization with preserved translation contracts, useful consumer-boundary coverage, and no actionable findings; the matching external CI failure remains a separate admission matter.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied matched production builds and real-Gateway cold-cache observations exercise the boot path whose English payload shrinks, with unchanged requests and passing readiness results; inspected synthetic captures support visual parity. Timing evidence is explicitly prior-head, and the relevant extraction is unchanged by integration.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Control UI transfers optional route and action text before users need those features.
Reason: The maintainer-authored direction produces measured byte savings without adding requests, visible loading states, configuration, or competing translation ownership.

Merge readiness

✅ Ready for maintainer review

This PR delivers a measured startup reduction using existing translation owners, with no actionable code findings; the earlier conflict and evidence requests are resolved.

Priority: P2
Reviewed head: d457b771b0334522305577ab1dfb0d7135e60665

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI translation layer combines eager English with synchronously registered feature fragments, supplying fallback text to pages, command execution, and Settings search; separate tooling composes the complete ordered source catalog.

flowchart TD
A[Control UI startup] --> B[Eager English catalog]
C[Feature consumer loads] --> D[Existing English registrars]
D --> B
B --> E[Translation lookup]
E --> F[Pages and commands]
D --> G[Source catalog tooling]
Loading

Technical review

Best possible solution:

Retain this focused extraction and existing synchronous registration contracts, then complete normal CI admission using the independently documented failure evidence.

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

This is a performance improvement rather than a reported functional bug; source inspection confirms the eager strings, and the supplied matched-build and real-Gateway measurements establish the optimization scenario.

Is this the best way to solve the issue?

The change uses the established lazy-English mechanism, preserves first-use fallback and catalog ordering, and avoids introducing another loader or state owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared Cron fallback text changes intended behavior with a stated reason (84c8dae: The earlier extraction retained outcome and validation strings because shared actions needed readable text before the Cron page loaded.)
  • Command-result English registration keeps the original intent (353db54: Existing command-result extraction recovered Chat and New Session boot headroom; the executor already registers its fragment synchronously.)
  • Canonical catalog composition keeps the original intent (a7f5566: Earlier optional-English extraction preserves canonical ordering while runtime fragments remain lazy.)
  • Original eager route subtitles changes intended behavior with a stated reason (unknown: The base contains the full subtitle namespace; git log -S encountered unavailable historical blobs, so its original introduction was not established.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a7f5566 adds scripts/lib/control-ui-i18n-catalog.ts:300 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a7f5566707d3; files: scripts/lib/control-ui-i18n-catalog.ts)

PR surface

Source +76, Tests +106, Other +13. Total +195 across 30 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 24 178 102 +76
Tests 3 109 3 +106
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 19 6 +13
Total 30 306 111 +195

Review metrics

Metric Value Why it matters
Production versus test changes Production +197/−108 lines; tests +109/−3 lines Production growth wires existing registrars and preserves catalog composition; tests cover distinct cold-consumer fallback and namespace-identity failures.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Measured Control UI startup improvement with limited behavioral scope and no demonstrated urgent user-facing regression.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-23T20:05:51.717Z sha 777c860 :: needs changes before merge. :: none

Reviewed October 23, 2026, 5:23 PM ET / 21:23 UTC (Revision 2).

@steipete
steipete enabled auto-merge (squash) October 23, 2026 21:07
@steipete

Copy link
Copy Markdown
Contributor Author

Resolved the performance-budget conflict on d457b771b0334522305577ab1dfb0d7135e60665, retaining main’s stricter caps and ratcheting them from the matched build. The PR body now includes the completed real-Gateway timing table, 1,080 verified transport receipts, and inspected synthetic before/after captures. All timing cells pass the declared rule. Integrated UI types, production Knip, format, and strict performance checks passed; exact-head CI is running.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 23, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Landed diagnostics-only follow-up #181989 in 951d373. The next failure of this case will attach bounded, redacted Gateway PR/RPC events, subscription WebSocket frames, and parent/descendant UI state to the existing CI-uploaded failure report. Verified with a forced failure; product behavior and timeouts are unchanged. The prior investigation remains 0/160 reproductions.

@steipete
steipete disabled auto-merge October 23, 2026 23:30
@steipete
steipete merged commit f31da84 into main Oct 23, 2026
138 checks passed
@steipete
steipete deleted the solid2/w-perf-root-copy branch October 23, 2026 23:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: M 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