Skip to content

perf(ui): defer Settings English until needed - #135131

Merged
steipete merged 4 commits into
mainfrom
steipete/control-ui-lazy-english-headroom
Sep 1, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/control-ui-lazy-english-headroom

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Related: #121497 — Control UI startup headroom.

Separate follow-up to #134490 — upgrade configuration and recovery. This PR does not modify that branch or its upgrade/recovery decisions, and does not settle the broader budget-policy question.

Additional instructions

This is a same-repository maintainer branch and remains takeover-ready.

What Problem This Solves

Resolves a problem where every Control UI startup downloads English copy needed only after opening Settings or Settings search. The measured main baseline had only 1,080 bytes left under the existing startup gate, making ordinary UI work vulnerable to another round of byte shaving.

This moves 263 unchanged strings out of the initial graph rather than deleting guidance, changing compression accounting, or increasing a budget.

Why This Change Was Made

The existing lazy English registrar pattern now owns whole Settings subtrees. Both the config page and cold Settings search register the copy before reading it, preserving the config-page header's updates.page.intro; shared save/update errors, navigation, login, and startup recovery copy remain eager.

Generation, verification, and Vite now consume one host-only source-catalog owner. Empty namespace anchors retain the original flattened ordering and translation-memory aliases, and the source hash includes the previously omitted static en-agents.ts dependency. Required object namespaces are represented in the English catalog's type instead of asserted by the registrar.

User Impact

Startup JavaScript is 3,034 gzip bytes smaller, with the same eight initial JS requests. Settings text, translation fallback, and error behavior are unchanged; there is no new option or operator action. Existing non-English adapters and the post-merge generated-locale workflow remain the translation owners.

No budget, baseline, generated translation memory/metadata, dependency, product config/environment option, protocol, database schema, version, or changelog is changed.

Evidence

Canonical builds used baseline 7fd30e6bb574 and exact candidate 60f6575a1e8b1af9d9071b79d656f515959d5b95 with Node 24.20.0 and pnpm 12.1.0.

Metric Before After
Initial JS gzip 348,164 B 345,130 B
Initial JS requests 8 8
Existing enforcement limit 349,244 B 349,244 B
Remaining headroom 1,080 B 4,114 B
Ordered English source entries 6,016 6,016

A second candidate UI build reproduced 345,130 B. Both canonical builds passed with no ineffective-dynamic-import warning. Full ordered key/value equality, all 263 moved strings and placeholders, shared namespace identity, and idempotent registration were verified against an independently captured pre-change catalog.

The new cold-search regression failed before because startup eagerly resolved configPage.themeImported, then passed after. 356 tests across 18 files passed; two single-worker ordering runs passed 121 tests each. The final type-only cleanup also passed 88 catalog/search cases and five type graphs. These repeated/subset counts are not an aggregate unique-test total. The complete changed-check plan, keyless i18n verification, formatting, typed lint, and stylelint passed. Independent Codex autoreview was scoped-clean at its configured P0 threshold.

Real-Gateway browser proof: the same six cases passed before and after against an isolated loopback Gateway, with synthetic state and no provider/channel credentials: English precondition; default New Session startup; cold search before config-page import followed by Updates and English→French→English; direct Updates navigation; English fallback under a deliberately partial foreign-locale response; and readable recovery under a deliberately rejected page module. The two fault cases altered only browser responses, not source or generated files. The after network trace contains no Settings-copy asset during default boot; the copy arrives with the existing lazy Settings graph. Screenshots and recordings were inspected.

This proves the catalog/loading change, not installed-upgrade recovery. The isolated source checkout's unavailable upstream status is visible in some screenshots; no update.run request was sent. Early recording setup retries corrected HTTP readiness and two locator assumptions; the final complete before/after runs passed. Owned Gateways were stopped after capture.

Production/tooling: +428/-455 (net -27); tests: +240/-32 (net +208, discounting the integration-test move); guide: +2/-1. The 263-string relocation is a move, not new copy. Duplicated source-path lists, wrapper loaders, and the obsolete dynamic English-loader helper were removed.

CI follow-up: run 33500266070 passed the build, catalog, and all three UI unit shards, but UI E2E shard 4/14 exposed an outdated test classifier: it counted en-settings.ts as a foreign locale because only en.ts and en-agents.ts were excluded. Commit d925b8f71ae01a0429384e11021ecc91e054fcc9 changes only that test to use the existing locale registry. It preserves the zero-before-selection and one-request-per-selected-locale assertions; there is no production change after the measured/live-tested commit. The failure reproduced locally, then both locale E2E cases and the classified changed checks passed. The test-only correction also passed a fresh scoped P0 Codex autoreview.

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/locale-offline-retry.e2e.test.ts
node scripts/check-changed.mjs -- ui/src/e2e/locale-offline-retry.e2e.test.ts

Core CI follow-up: run 33501871081 cleared the UI failure but timed out in the pre-existing OpenRouter integration setup, before its five tests. That setup cold-loaded an inactive plugin registry and discarded the provider; it also failed to supply the real hook to the loaded-only classifier. Commit 12b5ace4d76e0ad4ebd2759a82981d5eec4941ad repairs only the test fixture using existing public plugin loading, real registration and request-scoped registry helpers. It removes the 300-second warm-up override, preserves the HTTP/SSE assertions and unit-fast lane, and adds a key-limit billing case that fails with the old setup (auth) and passes with the real hook (billing). No production code changes. Node 24.20.0 affected/sibling proof passed 163 tests in five files; the changed-file gate and a fresh scoped P0 Codex review passed. The complete core CI shard still runs on the new head before landing.

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs src/agents/openrouter-error-classification.integration.test.ts src/agents/failover-error.test.ts src/agents/failover/provider-structured-signals.test.ts src/agents/embedded-agent-helpers/provider-runtime-failure.test.ts extensions/openrouter/failover.test.ts
node scripts/check-changed.mjs -- src/agents/openrouter-error-classification.integration.test.ts

Integration ownership correction: run 33504931713 passed the classification tests but caught the new fixture's wrong location with the extension-boundary guard. The suite now lives at test/plugins/openrouter-error-classification.integration.test.ts, beside existing cross-plugin/core integration tests. Its six HTTP/SSE bodies and scoped real-provider setup are unchanged; there is no guard exemption, alias, duplicated suite or lost CI selection. The explicit boundary test reproduced the failure before the move and passed afterward. Final Node 24 boundary/sibling/scope proof passed 180 tests; staged changed checks, root types, explicit type-aware lint and a fresh scoped P0 review passed. Executed local/full/compact/changed CI planners each select the new test once. Automatic root-test lint on current main is already owned by #135123 — lint changed root tests, so no lint-policy change is added here.

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/extension-test-boundary.test.ts test/plugins/openrouter-error-classification.integration.test.ts src/agents/failover-error.test.ts src/agents/failover/provider-structured-signals.test.ts src/agents/embedded-agent-helpers/provider-runtime-failure.test.ts extensions/openrouter/failover.test.ts test/plugins/clawrouter-responses-discovery.test.ts
OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs src/plugins/runtime/gateway-request-scope.test.ts
node scripts/run-oxlint.mjs --type-aware --tsconfig test/tsconfig/tsconfig.test.root.json test/plugins/openrouter-error-classification.integration.test.ts

ClawSweeper disposition: the completed review found no code/security findings. Its missing-current-main evidence was supplied from a full, non-promisor checkout at ebd3f9a7a9ce39007570a48e99850528e959d4ea: the only drift within changed source paths was unrelated eager attention/Mermaid copy; no Settings subtree or catalog-owner change was already present. The generic stored-data-model flag does not apply: this is host-side catalog composition, with no runtime store/schema or serialized-format change; ordered source and translation-memory alias contracts were independently checked. Maintainer review is complete; exact-head green CI and native prepare/merge remain required.

Representative exact local validation commands
node scripts/run-vitest.mjs ui/src/pages/config/settings-search.test.ts -t 'loads Settings English only'
node scripts/run-vitest.mjs test/scripts/control-ui-i18n.test.ts test/scripts/control-ui-i18n-sync-plan.test.ts ui/src/i18n/automations-rename.test.ts ui/src/i18n/lib/registry.test.ts ui/src/i18n/lib/translate.test.ts ui/src/i18n/lib/lit-controller.test.ts ui/src/i18n/test/translate.test.ts ui/src/app/vite-config.node.test.ts ui/src/app/web-push.test.ts ui/src/pages/config/settings-search.test.ts ui/src/pages/config/config-page.test.ts ui/src/pages/config/view.browser.test.ts ui/src/pages/config/updates.test.ts ui/src/pages/config/notifications-section.test.ts ui/src/pages/config/session-observer-settings.test.ts ui/src/pages/config/route.test.ts ui/src/pages/config/settings-targets.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-isolated.config.ts ui/src/pages/config/config-page.custom-theme.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui.config.ts ui/src/pages/config/settings-targets.test.ts ui/src/pages/config/settings-search.test.ts ui/src/i18n/lib/translate.test.ts ui/src/i18n/lib/lit-controller.test.ts ui/src/i18n/test/translate.test.ts ui/src/app/vite-config.node.test.ts --maxWorkers=1 --no-file-parallelism --sequence.shuffle.files --sequence.seed=263
pnpm ui:i18n:verify
node scripts/check-changed.mjs -- scripts/control-ui-i18n-verify.ts scripts/control-ui-i18n.ts scripts/lib/control-ui-i18n-catalog.ts test/scripts/control-ui-i18n-sync-plan.test.ts ui/AGENTS.md ui/config/control-ui-locales.ts ui/src/app/vite-config.node.test.ts ui/src/i18n/automations-rename.test.ts ui/src/i18n/locales/en-settings.ts ui/src/i18n/locales/en.ts ui/src/pages/config/config-page.ts ui/src/pages/config/notifications-section.ts ui/src/pages/config/session-observer-settings.ts ui/src/pages/config/settings-search.test.ts ui/src/pages/config/settings-search.ts ui/src/pages/config/settings-targets.test.ts ui/src/pages/config/updates.ts ui/src/pages/config/view.ts
pnpm build
pnpm ui:build
node --import ./scripts/tsx.mjs scripts/check-control-ui-performance.mts --json
Inspected before/after screenshots — synthetic local Gateway

Cold Settings search, before loading the destination page:

Before: cold Settings search

After: cold Settings search

Preserved Updates introduction and copy (runtime timestamps/status are not a visual redesign):

Before: Updates introduction

After: Updates introduction

Keep optional Settings copy out of Control UI startup while preserving
cold settings search, the Updates introduction, translation fallbacks,
and shared startup/update guidance. Move 263 strings unchanged through
the existing lazy catalog registration boundary.

Unify complete source-catalog composition and source-hash dependencies
for Vite, verification, and locale generation. Preserve source ordering
and translation-memory aliases; no budget or baseline changes.

Related: #121497
Separate startup-headroom follow-up to #134490.
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 11:00
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 8:32 AM ET / 12:32 UTC.

ClawSweeper review

What this changes

The branch defers Settings-only English UI text to lazy Settings paths, centralizes complete build-time locale catalog composition, and relocates an OpenRouter integration suite to the plugin-boundary test area.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No actionable correctness or security finding was identified. This maintainer-authored, maintainer-labeled PR remains useful and should await completion of exact-head CI before normal maintainer landing review.

Priority: P3
Reviewed head: b8e899ae8bf0e4c76e3aad4782bc075c331f3a72

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The patch uses the existing lazy boundary, preserves catalog generation through one host-only owner, and adds focused boundary regression coverage; only exact-head CI completion remains.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this same-repository MEMBER PR; its body nevertheless describes isolated real-Gateway browser before/after coverage of boot, cold search, direct Updates navigation, fallback, and rejected-module recovery.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this same-repository MEMBER PR; its body nevertheless describes isolated real-Gateway browser before/after coverage of boot, cold search, direct Updates navigation, fallback, and rejected-module recovery.
Evidence reviewed 7 items Lazy Settings boundary: The application imports the Settings sidebar only after Settings takeover begins; that sidebar imports Settings search, whose module synchronously registers the deferred English fragment before it reads translated search keys.
Complete catalog owner: The host-only catalog composes the eager catalog with all lazy registrar catalogs without mutating runtime English, while the Vite locale plugin consumes that complete composition.
Cold-search regression coverage: The new test proves Settings keys are unavailable at English startup, loads search before the config page, then verifies registration, shared namespaces, fallback, and locale switching.
Findings None None.
Security None None.

How this fits together

The Control UI starts with an English locale object, then loads the Settings sidebar and config page only after entering Settings. Build-time catalog tooling composes eager and lazy English fragments so generated non-English locale adapters retain complete source text.

flowchart LR
  Boot[Control UI startup]
  English[Startup English catalog]
  Settings[Enter Settings]
  Sidebar[Lazy Settings sidebar]
  Registrar[Settings English registrar]
  Build[Locale build and verification]
  FullCatalog[Complete source catalog]
  Boot --> English
  Settings --> Sidebar
  Sidebar --> Registrar
  Registrar --> English
  Build --> FullCatalog
  FullCatalog --> English
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still incomplete; native merge preparation should wait for its terminal required-check result.
  • Complete next step (P2) - No repair lane is needed because this review found no concrete defect; wait for exact-head CI, then continue normal maintainer landing review.
Agent review details

Security

None.

PR surface

Source +48, Tests +208, Docs +1, Other -75. Total +182 across 20 files.

View PR surface stats
Area Files Added Removed Net
Source 9 389 341 +48
Tests 7 240 32 +208
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 3 39 114 -75
Total 20 670 488 +182

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling net -27; tests/support net +208; guide net +1 The production change is a net reduction after moving Settings copy and deleting dynamic catalog loaders; test growth covers lazy loading, catalog composition, and plugin-boundary behavior.

Stored data model

Persistent data-model change detected: serialized state: scripts/lib/control-ui-i18n-catalog.ts, unknown-data-model-change: scripts/lib/control-ui-i18n-catalog.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the existing lazy Settings boundary, host-only complete catalog owner, and plugin-boundary integration coverage; land after exact-head CI confirms the current head.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the existing lazy Settings boundary, host-only complete catalog owner, and plugin-boundary integration coverage; land after exact-head CI confirms the current head.

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

Not applicable: this is a startup-performance refinement rather than a report of broken shipped behavior. The PR body nevertheless supplies before/after isolated browser evidence for the affected loading path.

Is this the best way to solve the issue?

Yes. The existing lazy Settings sidebar and config-page boundaries load the registrar before any moved key is read, while the host-only catalog keeps generation and Vite input complete without importing that owner into runtime code.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 570815775a2a.

Labels

Label justifications:

  • P3: This is a contained startup-performance improvement with no demonstrated urgent regression or operator action.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this same-repository MEMBER PR; its body nevertheless describes isolated real-Gateway browser before/after coverage of boot, cold search, direct Updates navigation, fallback, and rejected-module recovery.

Evidence

What I checked:

  • Lazy Settings boundary: The application imports the Settings sidebar only after Settings takeover begins; that sidebar imports Settings search, whose module synchronously registers the deferred English fragment before it reads translated search keys. (ui/src/app/app-host.ts:201, b8e899ae8bf0)
  • Complete catalog owner: The host-only catalog composes the eager catalog with all lazy registrar catalogs without mutating runtime English, while the Vite locale plugin consumes that complete composition. (scripts/lib/control-ui-i18n-catalog.ts:28, b8e899ae8bf0)
  • Cold-search regression coverage: The new test proves Settings keys are unavailable at English startup, loads search before the config page, then verifies registration, shared namespaces, fallback, and locale switching. (ui/src/pages/config/settings-search.test.ts:11, b8e899ae8bf0)
  • Current-main check: The initial performance commit is not an ancestor of fetched current main, and the merge-base comparison still shows the deferred Settings catalog and registrations as branch changes; the work is not already implemented on main. (ui/src/i18n/locales/en-settings.ts:1, 570815775a2a)
  • Introduced-history provenance: The raw commit records the performance change with merge-base parent 7fd30e6; its changes are attributable to this branch rather than base drift. (ui/src/i18n/locales/en-settings.ts:340, 60f6575a1e8b)
  • Existing plugin-policy coverage retained: The relocated integration suite registers the bundled provider through the public test surface and scopes it to each test; the plugin itself classifies key-limit errors as billing. (test/plugins/openrouter-error-classification.integration.test.ts:17, b8e899ae8bf0)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-01T10:59:56.715Z sha 60f6575 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T11:07:15.304Z sha 60f6575 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T11:28:11.506Z sha d925b8f :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 1, 2026
Keep locale loading assertions independent of English source fragments.
The Settings registrar is not an operator-selectable foreign locale.
Use the canonical registry instead of a growing English filename list.
Replace cold inactive-registry warm-up with existing public plugin loading
and request-scoped registration. Keep HTTP/SSE composition and add a
billing case that proves the real provider hook participates.

Remove the 300-second setup override; no production behavior changes.
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Sep 1, 2026
… boundary

Move the real-provider/core-classifier suite out of core source. Preserve
all six HTTP/SSE cases, registry scope and automatic unit-fast/CI coverage.
The explicit extension boundary suite and canonical root types/lint pass.
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Sep 1, 2026
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready verification

Reviewed head: b8e899ae8bf0e4c76e3aad4782bc075c331f3a72. Exact-head CI run 33507413041 completed successfully. Native review artifacts are stamped and validated for this head. OPENCLAW_TESTBOX=1 scripts/pr prepare-run 135131 passed the hosted CI gate and verified the remote tree equals the prepared head; no rebase or extra push was needed.

The canonical fix moves 263 unchanged Settings strings into the existing lazy registrar, including registration before cold Settings search, and gives Vite/verification/generation one host-only complete-catalog owner. All 6,016 ordered English entries and placeholders are preserved. updates.page.intro remains config-page-header owned; shared startup/update errors remain eager. Matched local builds save 3,034 gzip bytes, retain eight initial JS requests, and leave the 349,244 B enforcement limit unchanged. A later CI merge build measured 345,214 B under that same limit. No budget, baseline, generated translation memory, product option or runtime persistence change.

The PR body contains inspected, synthetic before/after screenshots and the real isolated-Gateway proof: default boot, cold search and page navigation, Updates introduction, locale switching, partial-translation English fallback and readable rejected-page recovery. Settings copy is absent from default-boot requests. No update.run was sent. This is not installed-upgrade recovery proof or authenticated live OpenRouter proof.

CI findings were fixed rather than retried away: the locale E2E now counts registered foreign adapters, not arbitrary English fragment files; the OpenRouter integration now installs the real provider in request scope and lives under the existing test/plugins composition boundary. The new billing case fails with the original inactive setup and passes with the real hook. Final boundary/sibling/scope proof passed 180 tests, root types and explicit type-aware lint passed, and the actual local/full/compact/changed CI planners each select the relocated suite once. The source refactor and every subsequent test-only correction received scoped-clean independent Codex review at the configured P0 threshold.

Representative local commands (full earlier ledger in the PR body):

pnpm build
pnpm ui:i18n:verify
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/locale-offline-retry.e2e.test.ts
OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/extension-test-boundary.test.ts test/plugins/openrouter-error-classification.integration.test.ts src/agents/failover-error.test.ts src/agents/failover/provider-structured-signals.test.ts src/agents/embedded-agent-helpers/provider-runtime-failure.test.ts extensions/openrouter/failover.test.ts test/plugins/clawrouter-responses-discovery.test.ts
node scripts/run-oxlint.mjs --type-aware --tsconfig test/tsconfig/tsconfig.test.root.json test/plugins/openrouter-error-classification.integration.test.ts

ClawSweeper disposition: proceed through native preparation/merge now that exact-head CI is green, as recommended by the latest completed review. Full-source main comparison was independently completed; no equivalent extraction is already on main. The generic stored-data-model flag is inapplicable because serialized formats and runtime stores are unchanged. Later commits only repair test fixtures/ownership, with independent reviews and green CI. Automatic root-test lint is already covered by merged #135123; no policy exemption was added here.

Final judged delta: production/tooling −27, tests +208 after discounting the move, guide +1. Broader startup-budget issue #121497 stays open; upgrade/recovery PR #134490 remains separate and untouched.

@steipete
steipete merged commit 24a8359 into main Sep 1, 2026
211 checks passed
@steipete
steipete deleted the steipete/control-ui-lazy-english-headroom branch September 1, 2026 12:36
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
* perf(ui): defer Settings English until needed

Keep optional Settings copy out of Control UI startup while preserving
cold settings search, the Updates introduction, translation fallbacks,
and shared startup/update guidance. Move 263 strings unchanged through
the existing lazy catalog registration boundary.

Unify complete source-catalog composition and source-hash dependencies
for Vite, verification, and locale generation. Preserve source ordering
and translation-memory aliases; no budget or baseline changes.

Related: openclaw#121497
Separate startup-headroom follow-up to openclaw#134490.

* test(ui): count only registered locale adapters

Keep locale loading assertions independent of English source fragments.
The Settings registrar is not an operator-selectable foreign locale.
Use the canonical registry instead of a growing English filename list.

* test(agents): scope real OpenRouter hooks in error integration

Replace cold inactive-registry warm-up with existing public plugin loading
and request-scoped registration. Keep HTTP/SSE composition and add a
billing case that proves the real provider hook participates.

Remove the 300-second setup override; no production behavior changes.

* test(plugins): own OpenRouter composition coverage at the integration boundary

Move the real-provider/core-classifier suite out of core source. Preserve
all six HTTP/SSE cases, registry scope and automatic unit-fast/CI coverage.
The explicit extension boundary suite and canonical root types/lint pass.
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: XL 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