Repository navigation
fix(ui): reduce oversized startup JavaScript - #179169
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
joshavant
marked this pull request as ready for review
October 21, 2026 06:53
This was referenced Oct 22, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 22, 2026
This was referenced Oct 22, 2026
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Control UI startup JavaScript exceeds its size budget; composer and approval-page copy loads before those surfaces are needed.
User Impact
The initial download contains less JavaScript. Visible wording, controls, approval behavior, active-language selection, and English fallback stay the same. There is no configuration or migration step. The current upstream size-budget overage is reduced but not fully eliminated; see the measurements below.
Why This Change Was Made
Move six composer namespaces into an existing-style lazy catalog and move approval-page copy into the existing approvals catalog. Register each catalog synchronously at its consumers, including plain helpers and Settings search before chat opens. Retain empty namespace objects and host-side catalog composition so translation lookup and ordering remain stable. Regenerate the boot manifest and correct stale budget documentation through their existing owners.
This reuses existing registration and invalidation owners. Most of the diff moves 358 existing catalog lines; production changes are +506/−379 across 34 files, plus the generated manifest and two documentation corrections (37 files, +520/−387 total). The added lines register existing catalogs at their consumers. No new manager, test scaffold, dependency, budget exception, or runtime lifecycle change is introduced.
Evidence
The branch was rebased onto
f0c671ec92a5370b43e610c8501681202e34805conly after a local merge check found two import conflicts. Both resolutions preserve upstream attachment-error and mention-lifecycle behavior and add only catalog registration.Matched local builds of that upstream base and head
ffc7841315bb7b0125facb0fbc4da952b81a04dd, using Node 24.21.0 / pnpm 12.12.1, the same installed toolchain, checkout path, package build command, and fixed build identity:The strict size check remains red on both revisions. The current enforcement limit is 325,476 B; this PR reduces the inherited startup overage from 6,333 B to 1,762 B. It does not fully clear the current budget. Chat and New Session remain below their unchanged 1,500,000 B / 1,035,000 B caps. Startup CSS is unchanged at one request / 40,439 B gzip.
Both package builds succeed. These are static shipped-asset sizes, not load-time or agent-latency measurements. The regenerated boot manifest also incorporates three upstream modules, so the full-route differences include regrouping. The native archive-based comparison separately reported the same candidate startup size but slightly different base route totals; the table consistently uses the matched normal builds above.
ui:i18n:verifypass. All 292 moved strings compare equal to this upstream base, with namespace identity preserved across repeat registration. Earlier full-catalog proof compared 11,235 ordered key/value pairs exactly; those unchanged-input results remain prior-base evidence.git diff --checkpass.Known limitations: typed UI lint previously reproduced an inherited
no-misused-promisesdiagnostic inchat-async-question-summary.tsxand a Solid reactivity warning inchat-composer-emoji.tsx. Both upstream files are unchanged at this new base. Neither diagnostic is suppressed by this PR. This is not a warning-free or all-checks-green claim; CI results will attach to the published head.