Skip to content

fix(ui): restore startup budget after cloud worker settings growth - #138472

Closed
vincentkoc wants to merge 1 commit into
mainfrom
fix/control-ui-startup-copy
Closed

vincentkoc wants to merge 1 commit into
mainfrom
fix/control-ui-startup-copy

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #121497

Supersedes #138461. GitHub reports that contributor branch as uneditable by maintainers, and its exact head fails check-lint because one touched page is not formatted. This replacement preserves the contributor's behavior and credit, with only the required formatter correction.

Additional instructions

This same-repository branch is available for maintainer edits.

What Problem This Solves

Resolves a problem where operators opening New Session or Chat download Cloud Workers settings copy even though that page has not been opened. The accumulated startup JavaScript exceeds the committed performance allowance and blocks unrelated changes.

Why This Change Was Made

Move the unchanged page-only English namespace into the existing lazy Settings catalog and register it synchronously when the Cloud Workers page loads. Keep the empty startup anchor so the complete translation catalog retains its source order.

No budget, baseline, dependency, configuration, schema, CSS, cloud provisioning, permission, credential, or persistence behavior changes.

User Impact

New Session and Chat download less startup JavaScript. Cloud Workers settings retain the same labels, localized translations, English fallback, validation messages, and behavior.

Evidence

  • Original contributor proof on perf(ui): keep cloud worker settings copy out of startup #138461 measured startup JavaScript dropping from 350,344 B to 349,379 B with the 350,141 B enforcement limit unchanged.
  • The original exact-head control-ui-performance check passes.
  • The replacement differs from the original candidate only by oxfmt output in the touched page.
  • The added cold-catalog regression fails on pre-fix main and verifies direct English registration plus localized fallback.
  • Focused i18n tests, fresh exact-head CI, native Testbox preparation, and a new Control UI performance run will gate landing.
  • Original browser proof exercised New Session, Cloud Workers settings, and invalid-form validation against a synthetic Gateway with unchanged visible page text and zero invalid config writes.

Before:

Before: Cloud Workers settings with a synthetic Gateway

After:

After: the same settings page on the exact candidate

Contributor: @obviyus. The landed commit preserves co-author credit.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc vincentkoc self-assigned this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 4, 2026
@vincentkoc
vincentkoc force-pushed the fix/control-ui-startup-copy branch from 8fd554d to 9a3c63f Compare September 4, 2026 18:25
@vincentkoc
vincentkoc marked this pull request as ready for review September 4, 2026 18:27
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The completed sweep review for exact head 9a3c63f450ceb461a1aca451f1c98c273a2929df was not synced because the publisher stopped on its GitHub write budget. Please publish a fresh exact-head review.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The prior exact-review run deferred because the old same-head lease had eight seconds remaining. That lease expired at 2026-09-04T19:08:37Z; please run and publish the exact-head review now.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

Closing as superseded by #138490, landed as 7ab8ca3a6b6ea8e9bb8ce9c6f96590795d19a0e4.

Current main contains the equivalent Cloud Workers lazy-catalog behavior. Merging this head now would duplicate the cloudWorkersPage catalog registration because the parallel implementations place the moved block differently.

This replacement preserved credit for Ayaan Zaidi (@obviyus), who authored the original fix in #138461. Its cold-catalog regression test is the only unique content and can be retained separately if needed.

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 size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant