Repository navigation
fix(ui): defer Apps-only English text at startup - #147164
Conversation
Move unchanged Apps strings into the existing lazy English catalog and register them synchronously in Apps, command palette search, and device settings. Preserve the complete ordered source catalog and startup labels. Startup gzip drops from 355703 to 355168 bytes with eight startup requests and unchanged budgets. Verify cold fallback loading, 35 focused tests, keyless i18n checks, full changed checks, and independent review.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 12:04 PM ET / 16:04 UTC. ClawSweeper reviewWhat this changesDefer Apps English text until Apps, command-palette search, or device settings loads, while preserving translation fallback and the complete tooling catalog. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, focused startup optimization, and no introduced correctness defect was found. Current main still includes the Apps text eagerly; the maintainer-authored, protected PR is not a cleanup candidate. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI combines an eager English catalog with text registered by lazy-loaded screens. The translation manager uses that catalog as fallback, while build tooling composes all text for translation generation and verification. flowchart TD
A[Control UI startup] --> B[Shared English catalog]
C[Apps, search, or device settings opens] --> D[Register deferred Apps text]
D --> B
E[Selected language] --> F[Translation lookup]
B --> F
F --> G[Displayed labels]
D --> H[Complete tooling catalog]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +21, Tests +57, Other +3. Total +81 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep Apps fallback text with its lazy consumers and preserve the existing shared catalog, ordering, locale preferences, and startup budgets. Do we have a high-confidence way to reproduce the issue? Yes for the eager-loading mechanism: current main places the complete Apps subtree in the startup English catalog. The exact size-gate failure and byte savings were supplied by the PR and were not independently rerun. Is this the best way to solve the issue? Yes: the patch follows the established lazy-catalog pattern, updates every identified consumer, and preserves complete tooling composition without changing settings or budgets. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ca0746ad8c56. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Move unchanged Apps strings into the existing lazy English catalog and register them synchronously in Apps, command palette search, and device settings. Preserve the complete ordered source catalog and startup labels. Startup gzip drops from 355703 to 355168 bytes with eight startup requests and unchanged budgets. Verify cold fallback loading, 35 focused tests, keyless i18n checks, full changed checks, and independent review.
Related: #147105
What Problem This Solves
The Control UI loads Apps-page English text on startup even when that view is never opened, contributing to the current startup JavaScript size-gate failure on main.
User Impact
Apps-only text loads with the existing lazy Apps, catalog-search, and device-settings entry points. Startup JavaScript is smaller, while all displayed copy and translated-language fallback remain unchanged.
Why This Change Was Made
The existing English registrar owns deferred copy. This change moves one complete subtree through that owner and updates all three consumers and the tooling catalog composition together. It leaves the existing size budgets and variance allowance unchanged.
Evidence
The synthetic Apps view is visually unchanged. Before/after captures are byte-identical; runtime inspection confirms the copy is absent on initial navigation after the change and present when Apps opens.