Skip to content

perf(ui): prepare saved locale and preload compact Chat catalogs - #194070

Merged
steipete merged 12 commits into
mainfrom
solid2/w-perf-locale-boot-round2
Nov 6, 2026
Merged

steipete merged 12 commits into
mainfrom
solid2/w-perf-locale-boot-round2

Conversation

@steipete

@steipete steipete commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Fix Chat boot in saved non-English locales: route preparation now waits for the locale owner to publish the requested catalog before enabling the composer. The existing pre-body locale/direction policy starts Chat catalog downloads early, overlapping the work with the rest of boot. A compact table stores only shared namespace names and eight-character content hashes for 22 foreign locales.

Verdict

Performance acceptance passes: compact full hints preserve the non-English benefit, the complete cold change beats main, and the English confirmation shows no repeatable regression. Merged through native pre-existing-failure admission as caaff17579aa55617ab207fb74ed1653dbe9c856. The proved 34-line test-budget debt was the only exception; all other gates passed. The shared scalar is unchanged.

The campaign coordinator explicitly accepts the full table's approximately +2,523 B gzip per document, including English, to preserve the non-English timing win and eliminate the enabled-English composer flash. The current build adds 2,519 B gzip versus the unhinted fix. No claim is made that warm gains are universally above 5%: WebKit warm gains are about 4%, while Chromium warm gains are about 10%.

Current-head acceptance

Head caa36901e8c8edebda10f429e8c21aea12538d63; baseline 642fd21190f2480fc9545d6b11d0eaca300919f1, refreshed from main before this round. The unhinted arm has exactly the same JS/CSS as head, with only the inline preload fragment removed. The separate main arm has none of this PR's readiness, grouping, or hint changes. Measurements do not pool historical heads.

Headless Chromium/WebKit, synthetic 400-message Chat, desktop 1440×1000, 100 ms RTT. Each of 12 cells has 20 rotated base/head/A/A triplets; the six cold cells add main and main-A/A arms. 960/960 observations, 0 failures. Host 1-minute load 4.71–26.42. Readiness is the maximum of raw readiness, locale publication, and first enabled visible localized composer, in application-local performance time. HTTP cache and service workers are disabled; warm means persisted-transcript reload, not an HTTP cache hit. The harness models latency, not bandwidth or TCP congestion windows.

Compact full hints versus unhinted flash fix

Engine Boot Locale Base median / p95 (ms) Head median / p95 (ms) Change median / p95 A/A median / p95
chromium cold-boot de 1002.2 / 1101.1 905.7 / 925.9 -9.63% / -15.91% +0.41% / +0.34%
chromium cold-boot en 837.6 / 938.5 840.2 / 936.6 +0.32% / -0.20% -0.08% / -1.27%
chromium cold-boot zh-CN 1008.2 / 1112.7 916.4 / 936.2 -9.11% / -15.86% -0.17% / -0.80%
chromium warm-boot de 930.7 / 942.3 832.9 / 839.1 -10.51% / -10.95% +0.13% / -0.15%
chromium warm-boot en 698.1 / 732.2 699.6 / 708.9 +0.21% / -3.19% +0.18% / -2.35%
chromium warm-boot zh-CN 931.1 / 940.1 833.1 / 844.1 -10.53% / -10.21% +0.31% / -0.33%
webkit cold-boot de 1182.5 / 1203.2 1000.5 / 1033.4 -15.39% / -14.11% -0.17% / +0.02%
webkit cold-boot en 1046.0 / 1081.8 1041.5 / 1092.2 -0.43% / +0.96% -0.53% / -1.81%
webkit cold-boot zh-CN 1163.5 / 1226.2 1011.5 / 1040.2 -13.06% / -15.17% +2.62% / -0.58%
webkit warm-boot de 755.5 / 796.8 731.5 / 745.5 -3.18% / -6.43% +1.46% / +1.53%
webkit warm-boot en 698.0 / 731.1 698.5 / 737.1 +0.07% / +0.81% +0.72% / -1.09%
webkit warm-boot zh-CN 760.5 / 843.7 732.5 / 780.6 -3.68% / -7.47% +0.53% / -6.24%

Net cold result versus main without this PR

Engine Boot Locale Base median / p95 (ms) Head median / p95 (ms) Change median / p95 A/A median / p95
chromium cold-boot de 976.0 / 991.8 905.7 / 925.9 -7.20% / -6.64% +0.58% / -0.02%
chromium cold-boot en 870.7 / 937.1 840.2 / 936.6 -3.49% / -0.05% -4.44% / -2.74%
chromium cold-boot zh-CN 980.8 / 991.9 916.4 / 936.2 -6.57% / -5.61% +1.03% / +0.59%
webkit cold-boot de 1084.0 / 1120.2 1000.5 / 1033.4 -7.70% / -7.75% +0.23% / -0.64%
webkit cold-boot en 1042.0 / 1060.0 1041.5 / 1092.2 -0.05% / +3.03% -0.05% / +2.94%
webkit cold-boot zh-CN 1107.0 / 1124.1 1011.5 / 1040.2 -8.63% / -7.46% +0.05% / +0.94%

Maximum observed fixed-arm foreign CLS is 0.000396 versus 0.001638 in the original-main cold arms. All settled computed-style comparisons match.

Fixed-arm non-English flashes: 0/480; candidate alone 0/160, original-main cold arms 160/160. Historical reproduction of the owner fix was 185/480 → 0/480; the current result above independently covers all fixed arms in this round.

Bounded English WebKit confirmation

Ten additional rotated pairs, keeping original20 and pooled30 explicit. Pooled cold versus original main is −0.10% median / +0.18% p95. The additional ten warm pairs improve median/p95; pooled warm p95 +2.33% follows A/A +2.03%, so no repeatable English regression is established.

Boot Comparison Samples B/H/A Base ms med / p95 Head ms med / p95 Delta med / p95 A/A med / p95
cold-boot incremental original20 20/20/20 1046.0 / 1081.8 1041.5 / 1092.2 -0.43% / +0.96% -0.53% / -1.81%
cold-boot net original20 20/20/20 1042.0 / 1060.0 1041.5 / 1092.2 -0.05% / +3.03% -0.05% / +2.94%
cold-boot incremental additional10 10/10/10 1068.5 / 1194.1 1067.5 / 1086.8 -0.09% / -8.98% -0.94% / -8.59%
cold-boot net additional10 10/10/10 1072.5 / 1090.8 1067.5 / 1086.8 -0.47% / -0.36% -2.19% / -0.83%
cold-boot incremental pooled30 30/30/30 1050.5 / 1101.1 1046.0 / 1086.8 -0.43% / -1.30% -0.67% / -0.88%
cold-boot net pooled30 30/30/30 1047.0 / 1084.8 1046.0 / 1086.8 -0.10% / +0.18% -0.33% / -0.29%
warm-boot incremental original20 20/20/20 698.0 / 731.1 698.5 / 737.1 +0.07% / +0.81% +0.72% / -1.09%
warm-boot incremental additional10 10/10/10 733.0 / 813.5 729.5 / 790.9 -0.48% / -2.78% -1.30% / +2.27%
warm-boot incremental pooled30 30/30/30 715.5 / 768.1 704.5 / 786.0 -1.54% / +2.33% -1.12% / +2.03%

Requests, lazy boundaries, and bytes

The three co-registered error dictionaries share one import but still publish under their own namespaces. Full hints do not remove additional dictionaries: they start the existing downloads earlier. Nine first-screen-unused namespaces cannot simply be skipped: narrower fragment loading previously caused English text on first-open menus, and bundling all Chat dictionaries broadened direct Appearance loading. Those rejected changes are absent.

The connection catalog remains: Chromium needs it. Omitting it only for WebKit warm boot would add browser-specific policy; head's WebKit warm catalog count honestly includes that one extra prefetched resource.

Engine Boot Locale Catalog requests All JS requests Catalog completion clusters
chromium cold-boot de 16 → 14 43 → 41 4 → 3
chromium cold-boot en 0 → 0 27 → 27 0 → 0
chromium cold-boot zh-CN 16 → 14 43 → 41 4 → 3
webkit cold-boot de 16 → 14 36 → 34 5 → 3
webkit cold-boot en 0 → 0 20 → 20 0 → 0
webkit cold-boot zh-CN 16 → 14 36 → 34 5 → 3
Engine Boot Locale Catalog requests All JS requests Catalog completion clusters
chromium warm-boot de 14 → 14 41 → 41 3 → 3
chromium warm-boot en 0 → 0 27 → 27 0 → 0
chromium warm-boot zh-CN 14 → 14 41 → 41 3 → 3
webkit warm-boot de 13 → 14 33 → 34 5 → 1
webkit warm-boot en 0 → 0 20 → 20 0 → 0
webkit warm-boot zh-CN 13 → 14 33 → 34 5 → 1

Completion clusters split response completion times at gaps over 50 ms. They describe observed scheduling, not literal network round trips. English emits zero locale hints and loads zero foreign catalogs. Non-Chat paths including New Session and Settings retain their lazy boundaries. Runtime locale switching, replacement, retry and fallback stay in the existing translation owner.

Surface Main Unhinted fix Compact full hints
Built HTML raw bytes 51,402 51,432 54,699
Built HTML gzip bytes 11,290 11,310 13,829
Gateway gzip body bytes 11,150 11,171 13,690
HTTP/1.1 headers 2,697 2,697 2,697
Full HTTP/1.1 response 13,847 13,868 16,387
Normalized startup JS gzip 89,622 89,653 89,653
Startup CSS gzip 36,704 36,704 36,704
Normalized Chat boot JS gzip 1,287,852 1,287,883 1,287,883
Normalized New Session boot JS gzip 796,905 796,936 796,936

Only the document gets a new cap: 13,893 B gzip = measured 13,829 + existing 64 B headroom. No existing startup, route, locale or CSS cap grows. The +31 B normalized JS difference versus main is within the 64 B build variance; hints add no JS/CSS versus the unhinted fix.

The gzip body fits a typical IW10 at MSS 1460, but the complete 16,387 B response does not (12 segments at MSS 1460), before TLS overhead. The benchmark cannot establish a first-congestion-window claim. Measurements used pinned Node 26.12.1 / zlib 1.3.2.1-motley-456ae73; generated hashes can slightly change gzip size.

All three actual Gateway responses returned HTTP 200. All six inline scripts' hashes are admitted by the response CSP, without script unsafe-inline. The generated hint URLs exist for all 22 locales (14 each), with zero for English.

Correctness and validation

Proof Result
UI + tooling typechecks Passed
Touched UI tests 32 passed
Performance checker tests 48 passed
Focused lint, formatting, diff checks Passed
Production Knip Passed
Strict head/base performance check Zero violations
Generated URLs and English opt-out Passed for 22 foreign locales
Actual Gateway CSP All six inline hashes admitted
Settled computed styles All 12 hint comparisons and six main/head cold comparisons match
Independent autoreview Scoped clean, including allocation correction
Exact-head CI run 42255149883 44 jobs passed; only global test-line ratchet failed (plus aggregate gate)

The test-line failure is not claimed as a matching inherited failure. Main carries 34 lines over its effective ceiling but passes because its delta is zero. This PR adds 200 justified test lines and 200 allocation credits, retaining that same debt and triggering the guard. The latest scheduled main job passes. The coordinator explicitly authorized the native pre-existing-failure route after the base/head proof; no scalar reconciliation will be made. The previous CI allocation mismatch (201 credits for 200 added lines) was fixed.

Historical service-worker/HTTP-cache probes established reuse in the same catalog-loader design, but are not relabeled as exact-head cache proof; this timing run deliberately excludes them. The committed build/owner tests protect generated hint selection, mounted paths, lazy grouping, fallback and superseding locale publication. Earlier broad tests and accepted Arabic/localhost tradeoffs are historical evidence, not new measurements in this 12-cell round.

Synthetic visual proof

Both images were inspected in full: synthetic content only, same settled layout and localization.

Chinese Chromium: main left, compact full hints right

German WebKit: main left, compact full hints right

Production LOC in changed files: 2,116 → 2,211 (+95). Test LOC: 3,054 → 3,254 (+200). Allocation record: 0 → 2 lines. The growth buys one readiness boundary, generated compact hints, and focused regression proof; no new dependency.

Readiness ranges and exact observation method
Engine Boot Locale Base min–max ms Head min–max ms A/A min–max ms
chromium cold-boot de 994.0–1112.4 891.3–926.4 990.3–1105.0
chromium cold-boot en 824.4–1124.2 820.1–937.3 818.6–942.8
chromium cold-boot zh-CN 999.1–1173.6 896.5–936.5 991.8–1112.4
chromium warm-boot de 922.9–942.4 825.0–843.2 924.7–943.5
chromium warm-boot en 691.1–749.9 693.5–709.9 688.2–824.2
chromium warm-boot zh-CN 919.9–943.3 823.0–845.2 922.8–938.0
webkit cold-boot de 1076.0–1206.0 986.0–1117.0 1066.0–1211.0
webkit cold-boot en 1019.0–1116.0 1026.0–1323.0 971.0–1105.0
webkit cold-boot zh-CN 1091.0–1496.0 997.0–1139.0 1086.0–1221.0
webkit warm-boot de 732.0–811.0 700.0–793.0 721.0–827.0
webkit warm-boot en 660.0–734.0 653.0–795.0 658.0–765.0
webkit warm-boot zh-CN 727.0–895.0 705.0–812.0 736.0–792.0

The committed workload is scripts/bench-control-ui-engines.ts. The proof-only observer below records first enabled, visible, localized composer time and the settled resource graph; it adds no production hook. The separate screenshot wrapper reads computed styles only after timing evidence is recorded.

node --import ./scripts/tsx.mjs --import ./.artifacts/r4-observe.mjs \
  scripts/bench-control-ui-engines.ts \
  --bundle-dir .artifacts/r5/unhinted --compare-bundle-dir .artifacts/r5/head \
  --control-bundle-dir .artifacts/r5/unhinted \
  --control-bundle-dir .artifacts/r5/main --control-bundle-dir .artifacts/r5/main \
  --engines chromium,webkit --network-profiles rtt-100ms \
  --configurations locale:en,locale:zh-CN,locale:de \
  --viewport desktop --steps cold-boot --pairs 20 --output .artifacts/r5/cold

Warm uses --steps warm-boot and only the unhinted/head/unhinted arms. Confirmation uses --engines webkit --configurations locale:en --pairs 10 with the corresponding cold/warm arms.

import { chromium, webkit } from 'playwright';

// Proof-only observer: sample the visible localized composer, not just <html lang>.
for (const engine of [chromium, webkit]) {
  const launch = engine.launch.bind(engine);
  engine.launch = async (...args) => {
    const browser = await launch(...args);
    const newContext = browser.newContext.bind(browser);
    browser.newContext = async (...contextArgs) => {
      const context = await newContext(...contextArgs);
      const newPage = context.newPage.bind(context);
      context.newPage = async (...pageArgs) => {
        const page = await newPage(...pageArgs);
        await page.addInitScript(() => {
          const expected = { en: 'Message OpenClaw', 'zh-CN': '给 OpenClaw 发消息', ar: 'مراسلة OpenClaw', de: 'Nachricht an OpenClaw' };
          const state = { readyMs: 0, englishMs: 0, placeholder: null, cls: 0 };
          if (PerformanceObserver.supportedEntryTypes.includes('layout-shift')) {
            new PerformanceObserver(list => { for (const entry of list.getEntries()) if (!entry.hadRecentInput) state.cls += entry.value; }).observe({type:'layout-shift', buffered:true});
          }
          Reflect.set(window, '__localizedBootProof', state);
          const sample = () => {
            const locale = localStorage.getItem('openclaw.i18n.locale') ?? 'en';
            const input = document.querySelector('.chat-pane-cache__pane--active .agent-chat__composer-combobox textarea');
            if (input && !input.disabled && input.checkVisibility()) {
              if (input.placeholder === expected.en && !state.englishMs) state.englishMs = performance.now();
              if (input.placeholder === expected[locale]) {
                state.readyMs = performance.now();
                state.placeholder = input.placeholder;
                return;
              }
            }
            requestAnimationFrame(sample);
          };
          requestAnimationFrame(sample);
        });
        const evaluate = page.evaluate.bind(page);
        page.evaluate = async (...evaluateArgs) => {
          const result = await evaluate(...evaluateArgs);
          if (result && typeof result === 'object' && Array.isArray(result.resources) && typeof result.lang === 'string') {
            await page.waitForLoadState('networkidle');
            result.localizedComposer = await evaluate(() => Reflect.get(window, '__localizedBootProof'));
            result.settledResources = await evaluate(() => performance.getEntriesByType('resource').map(entry => ({
              path: new URL(entry.name).pathname, startMs: entry.startTime, endMs: entry.responseEnd,
              encodedBytes: entry.encodedBodySize, transferBytes: entry.transferSize, initiator: entry.initiatorType,
            })));
          }
          return result;
        };
        return page;
      };
      return context;
    };
    return browser;
  };
}

Native pre-existing-failure qualification

The campaign coordinator explicitly instructed native pre-existing-failure landing, with no scalar reconciliation. The exact merge base 642fd21190f2480fc9545d6b11d0eaca300919f1 reports 6,549,224 test lines against 6,549,190: 34 over, delta 0. The PR head reports 6,549,424 against 6,549,390: 34 over, delta +200, fully covered by its own 200-line allocation. The actual CI base 779c2e426079536ab2114393f894ddefeef3cd21 independently reports 6,549,489 against 6,549,455: 34 over, delta 0. The tested merge reports 6,549,689 against 6,549,655: 34 over, delta +200.

The debt was triggered by #191508 (d46a50ff8bc764deb5aaf78a1267a29a4f6b65cc): 47 unallocated test lines consumed the remaining 13 lines of headroom. These inputs are unchanged between the CI base and tested PR merge:

Inherited path Added LF lines in #191508
extensions/openai/token-sharing-oauth.runtime.test.ts +23
extensions/openrouter/oauth.test.ts +1
src/infra/oauth-loopback-callback.test.ts +22
src/llm/utils/oauth/anthropic.test.ts +1

Freshly fetched main 349fc9649dd681dda406de0ceef0f54cd8eff3c1 reports 32 lines over after later deletions; that does not change the exact 34-line base/head proof above. The base checker exits successfully through its zero-growth exception. This is not presented as a matching failed scheduled-main test; the native exception uses the coordinator's concrete attribution and the unchanged source objects. The global scalar and all existing size ceilings remain unchanged. Only the explicitly accepted document cap is new.

The sole substantive CI failure is checks-fast-baseline-ratchets (job 128021056435, run 42255149883 attempt 1); its downstream aggregate is openclaw/ci-gate (job 128026656979). All other selected jobs, including independent security, passed. Actual checkout 560f91fed0d45f5b2ec723528b09d3489c597dd4 has ordered parents CI base and PR head; the checkout log records it.

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

clawsweeper Bot commented Nov 6, 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 app: web-ui App: web-ui scripts Repository scripts size: S labels Nov 6, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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. 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR waits for the selected language before completing route preparation and includes Chat boot translations in the initial foreign-language catalog.

Example: Reload Chat with the saved language set to de while its translation download is pending.

  • Before: Route preparation can finish in English, briefly exposing an enabled English composer.
  • After: Route preparation waits for the language selection to settle, using German on success or the existing English fallback on failure.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and source-consistent, but available browser evidence remains provisional rather than establishing the declared performance acceptance result.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; the body reports owner regressions and provisional browser smoke, while its explicit performance acceptance hold remains in force.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A saved non-English language can briefly expose an enabled English Chat composer and trigger unnecessary namespace downloads.
Reason: The maintainer-authored direction restores the existing translated-route-readiness contract with a focused change to its current owners.

Merge readiness

✅ Ready for maintainer review

This PR addresses a source-confirmed locale-readiness bug and retains useful, focused work; no concrete correctness or security defect was found.

Priority: P2
Reviewed head: 2f5975504364ae757e2fb674272fe8ddf86430ad

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The declared browser acceptance matrix remains unfinished, including inspectable before/after composer captures, settled namespace request counts, and median/p95 results.
Agent review details

How this fits together

The Control UI locale manager turns saved or selected language preferences into published translations; the host-side catalog composer determines which translations load initially and which remain lazy.

flowchart LR
  A[Saved or selected language] --> B[Locale manager]
  C[English catalog fragments] --> D[Vite locale partition]
  D --> E[Foreign locale catalog]
  E --> B
  B --> F[Route preparation]
  F --> G[Chat composer]
Loading

Technical review

Best possible solution:

Keep readiness in the locale manager and startup partitioning in the existing catalog composer, preserving fallback, retry, and optional-page loading.

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

The pinned main source shows the failure: saved-locale loading remains pending while prepareLocale can complete against English; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The patch repairs the existing readiness owner and reuses canonical fragment composition; the documented wait for a superseded import avoids adding cancellation machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 01fe067 adds ui/src/i18n/lib/translate.ts:124 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 01fe067c9d17; files: ui/src/i18n/lib/translate.ts)
  • Vincent Koc: Raw commit 0606c0a adds ui/src/i18n/lib/translate.ts:119 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0606c0a96426; files: ui/src/i18n/lib/translate.ts)

PR surface

Source +4, Tests +78, Other +33. Total +115 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 14 10 +4
Tests 2 78 0 +78
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 34 1 +33
Total 4 126 11 +115

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Transient wrong-language composer readiness and unnecessary translation downloads have limited user impact without an established delivery, state, or availability failure.
  • 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:

  • P2: Transient wrong-language composer readiness and unnecessary translation downloads have limited user impact without an established delivery, state, or availability failure.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the declared browser campaign and attach sanitized before/after captures, request counts, and median/p95 results.

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 November 6, 2026, 5:23 AM ET / 10:23 UTC.

@steipete steipete changed the title fix: localize chat before enabling the composer perf(ui): prepare saved locale and batch Chat catalogs Nov 6, 2026
@steipete
steipete marked this pull request as ready for review November 6, 2026 11:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-11-06T16:26:34.196382Z 7763fc8 Draft marked ready
ℹ️ 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 removed the scripts Repository scripts label Nov 6, 2026
@steipete
steipete marked this pull request as draft November 6, 2026 13:50
@steipete steipete changed the title perf(ui): prepare saved locale and batch Chat catalogs perf(ui): prepare saved locale and coalesce error catalogs Nov 6, 2026
@steipete steipete changed the title perf(ui): prepare saved locale and coalesce error catalogs perf(ui): prepare saved locale and preload compact Chat catalogs Nov 6, 2026
@steipete
steipete marked this pull request as ready for review November 6, 2026 16:21
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7763fc8ac4

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +118 to +120
change = this.localeChange;
await Promise.all([preparation, change]);
} while (change !== this.localeChange);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop waiting on superseded locale selections

If a route calls prepareLocale() while a locale download is pending, then a user selection or server preference switches to English, this await still blocks on the discarded download. The generation check runs only after that old promise settles, even though English is already active and needs no download. Since app-routes.ts awaits this method before exposing the route component, navigation remains blocked until the obsolete request completes or reaches the browser's network timeout. A base/head reproduction confirms that the base releases readiness after selecting English, whereas this change does not. Allow a newer selection to supersede the pending readiness wait.

AGENTS.md reference: ui/AGENTS.md:L20-L20

Useful? React with 👍 / 👎.

@steipete
steipete merged commit caaff17 into main Nov 6, 2026
114 of 120 checks passed
@steipete
steipete deleted the solid2/w-perf-locale-boot-round2 branch November 6, 2026 17:23
@steipete

steipete commented Nov 6, 2026

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 7, 2026
…nclaw#194070)

* fix: localize chat before enabling the composer

* perf: batch chat locale namespaces without first-use flashes

* test(ui): preserve held-locale onboarding coverage

* perf(ui): preserve lazy locale catalogs while awaiting selection

* test(ui): account for formatted locale regression coverage

* perf(ui): preload compact saved-locale chat catalogs

* style(ui): brace locale preload test setup

* perf(ui): preload compact full locale catalogs

* fix(ci): match locale boot test line allocation
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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