Repository navigation
improve(ui): load Cloud Workers copy with settings - #138490
Conversation
|
🦞👀 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 4, 2026, 2:45 PM ET / 18:45 UTC. ClawSweeper reviewWhat this changesThe PR moves Cloud Workers English strings into the lazy Settings catalog and registers them before the Cloud Workers page renders, reducing startup copy without changing displayed text. Merge readiness✅ Ready for maintainer review Keep open. Current main still keeps this English subtree eager, while the proposed synchronous registration follows the established lazy-settings contract; no blocking correctness or security finding was identified. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI starts with shared translation copy and loads Settings navigation and pages on demand. Settings search and the Cloud Workers page need the same English fallback strings before they render or search. flowchart LR
A[Control UI startup] --> B[Shared English catalog]
C[Settings takeover] --> D[Lazy Settings catalog]
E[Cloud Workers route] --> F[Lazy Cloud Workers page]
D --> G[English fallback registry]
F --> G
G --> H[Settings search and page text]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +5. Total +5 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the empty eager anchor, retain registration from both Settings search and the lazy Cloud Workers page, and land the focused startup-payload reduction once normal exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable: the central change is a startup-payload optimization, not a reported user failure. Existing browser coverage exercises the Cloud Workers page after its English strings are registered. Is this the best way to solve the issue? Yes. The scoped UI policy specifically requires empty whole-subtree anchors and synchronous registration at lazy consumers; keeping the subtree eager would not reduce startup payload, while page-only registration would leave Settings search uncovered. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 26f87a37009b. 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.
|
What Problem This Solves
The Control UI loads all 54 Cloud Workers settings strings on every initial page, although only the lazy Cloud Workers page uses them. This unnecessary eager copy was found while investigating an inherited startup-budget failure on base 606d9ab. Since that proof, #137342 independently deferred the model-provider catalog on main; this change defers the separate Cloud Workers subtree.
Why This Change Was Made
Move the unchanged Cloud Workers English subtree into the existing lazy Settings catalog. Register it synchronously when its page module loads, before rendering. Keep an empty anchor in the eager catalog so host generation and translation-memory composition preserve the full source ordering.
This reuses the existing loading and registration owner. No budget, threshold, dependency, configuration, translation value, foreign translation memory or boot manifest changes. Production is +68/-63 lines: 63 lines move, with five net lines for the existing lazy boundary. No permanent test growth.
User Impact
Initial pages avoid downloading and parsing settings copy they do not use. Cloud Workers rendering, field labels, validation guidance and English fallback remain unchanged.
Evidence
The original Linux Node 24.20 / Vite 8.2.2 / Pako 3.0.1 diagnostic measured the actual base at 350,321 bytes gzip against the 350,141-byte limit. Its unrelated backend merge measured 350,365 bytes (+44). That difference is consistent with build metadata and propagated asset hashes; it is not exclusively attributed. The original failing gate and successful collection/cleanup receipts are retained. The repair targets startup payload; it does not establish production request latency or attribute the original growth to one historical feature.
The synthetic Cloud Workers page remains visually unchanged (captured after the change):
Related contribution: Ayaan Zaidi (@obviyus) implemented and verified the same Cloud Workers lazy-catalog change in #138461; #138472 was a credited replacement. Those PRs were closed as superseded by this landed change. Thanks to @obviyus for the contribution and proof.