Repository navigation
fix(ui): keep translated config hints out of startup preloads - #143376
Conversation
|
Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 10:18 PM ET / September 10, 2026, 02:18 UTC (Revision 5). ClawSweeper reviewWhat this changesSplits translated configuration hints into separate deferred language chunks and adjusts preload filtering and performance checks while preserving complete locale translations. Merge readiness✅ Ready for maintainer review This PR remains useful: current main lacks the proposed optimization, and related merged work does not supersede it. No blocking correctness or security findings were identified. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI build turns English source and translation memory into language modules loaded by the browser. Chunking and preload rules determine how much JavaScript startup downloads and when translated settings help becomes available. flowchart TD
A[English source and translation memory] --> B[Locale catalog builder]
B --> C[Base language chunk]
B --> D[Configuration hint chunk]
C --> E[Preload filtering]
D --> E
E --> F[Smaller startup dependency table]
C --> G[Complete translations on language selection]
D --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +141, Tests +301, Other +54. Total +496 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep complete locale activation and existing translation fallback while excluding deferred language assets from startup dependency bookkeeping and retaining the combined size cap. Do we have a high-confidence way to reproduce the issue? No independently reproduced current-main budget failure was established in this read-only review; source inspection supports the reported mechanism, and the author supplies after-fix production-build measurements. Is this the best way to solve the issue? Yes. The patch changes build-time partitioning and preload bookkeeping while retaining native module imports, locale exports, translation fallback, and the existing combined budget. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2273ffd0bf22. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Clear a rejected source-catalog promise at its producer and preserve the original failure. Later locale requests can load corrected source while successful sharing and generation fencing stay intact. Related: #143376.
Clear a rejected source-catalog promise at its producer and preserve the original failure. Later locale requests can load corrected source while successful sharing and generation fencing stay intact. Related: #143376.
…aw#143376) * fix(ui): split config hint locale chunks * fix(ui): discard invalidated locale catalog loads * fix(ci): accept split locale adapters in migration guard * fix(ui): split locale hints without ownership drift
Clear a rejected source-catalog promise at its producer and preserve the original failure. Later locale requests can load corrected source while successful sharing and generation fencing stay intact. Related: openclaw#143376.
What Problem This Solves
Fixes an issue where the Control UI startup bundle exceeded the hosted validation budget because every translated config-hint fragment was named in the boot-time module-preload dependency table.
Why This Change Was Made
Split translated config hints from each lazy locale catalog, then filter only hint-bearing JavaScript preload lists so the hint fragment and locale wrapper remain deferred until that locale is selected. Other preload lists, HTML preloads, runtime dependencies, and locale behavior remain unchanged.
User Impact
The Control UI stays within its startup JavaScript budget while preserving all translated config hints and lazy locale loading.
Evidence
__vite__mapDepstable contains only the shared runtime, with zero locale orlocale-config-hints-*entries.oxfmt,oxlint,git diff --check, Control UI i18n verification, and independent P0-P2 autoreview are clean.pnpm check:changedcompleted all preceding checks but the local typecheck lane rejected the required Codex-worktreenode_modulessymlink before compilation. Exact-head CI remains the authoritative typecheck proof.