Skip to content

fix(ui): Control UI blank page behind Cloudflare Rocket Loader - #136129

Merged
vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
Grynn:fix/control-ui-rocket-loader-bypass
Sep 4, 2026
Merged

vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
Grynn:fix/control-ui-rocket-loader-bypass

Conversation

@Grynn

@Grynn Grynn commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #135683

What Problem This Solves

Operators serving the Control UI through Cloudflare with Rocket Loader enabled can receive HTTP 200 and still see a blank page. Rocket Loader defers unmarked scripts, so the module entry never evaluates, the app does not mount, and the browser has no useful application error. This is a silent failure on the default Control UI boot path.

Why This Change Was Made

Cloudflare's documented per-script opt-out is data-cfasync="false". The three authored boot scripts now carry that marker.

Authored markup alone is insufficient: pinned Vite 8.2.2 replaces the module entry with a synthesized <script type="module"> tag during vite:build-html, dropping attributes from the source node. The existing control-ui-build-output plugin now finalizes every emitted script tag in a post-order transformIndexHtml hook, after Vite has synthesized the entry tag. The same owner continues to stamp the public-asset build ID, avoiding a second output-rewrite plugin and test-only export.

This uses Cloudflare's standard, free opt-out and Vite's native HTML-transform contract. It adds no config, environment variable, runtime fallback, gateway rewrite, or Cloudflare dashboard step.

User Impact

The built Control UI boots normally when Rocket Loader is active. Outside Cloudflare, data-cfasync is inert. Existing public-asset build-ID stamping, precompression, service-worker output, and dev-server behavior remain owned by their existing paths.

Evidence

Primary artifact proof: built index.html

Current main emits three unmarked script tags:

<script>
<script type="module" crossorigin src="./assets/index-C07oPoOm.js">
<script>

This PR emits the opt-out on all three, including Vite's synthesized module entry:

<script data-cfasync="false">
<script data-cfasync="false" type="module" crossorigin src="./assets/index-DG1SfJJa.js">
<script data-cfasync="false">

The build regression test uses both an inline classic script and a module entry, then requires data-cfasync="false" to be the first attribute on every emitted opening tag. This preserves Cloudflare's requirement that the marker precede src.

Before and after through the built UI

The same deterministic Rocket Loader transform was applied to production builds from current main and this PR. It rewrites every unmarked script to type="text/rocketscript", matching the documented defer boundary. Chromium then loads /chat with the repository mock Gateway. The after captures are taken only after connect and chat.startup, a rendered assistant message, and a visible composer; they contain no update, auth, connection-error, or promotional banner.

Before at 1440×900, current main has all three scripts deferred, no Gateway traffic, and a blank body.
Current main blank Control UI at 1440px

In this PR at 1440×900, no script is deferred and the connected chat view visibly renders its mock Gateway message and composer.
Connected built Control UI in this PR at 1440px

Before at 390×844, current main has all three scripts deferred, no Gateway traffic, and a blank body.
Current main blank Control UI at 390px

In this PR at 390×844, no script is deferred and the connected mobile chat view visibly renders its mock Gateway message and composer with the drawer closed.
Connected built Control UI in this PR at 390px

Verification

OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/run-vitest.mjs run \
  --config test/vitest/vitest.ui.config.ts --configLoader runner \
  ui/src/app/vite-build.node.test.ts \
  ui/src/app/vite-config.node.test.ts \
  ui/src/app/mount-fallback.test.ts

Test Files  3 passed (3)
Tests       54 passed (54)

OPENCLAW_VITEST_MAX_WORKERS=2 pnpm check:changed passed every selected lane: conflict markers, suppression ratchets, dependency and patch guards, formatting, temp-file policy, i18n, core-test and UI typechecks, coercion declarations, all dead-export scans, core lint, and changed UI style lint. The linked worktree used the canonical checkout's existing binaries on PATH; no dependency install or reconciliation was performed.

Uncommitted review over the full PR range found no accepted P0/P1 findings.

Risk and coverage

  • What else could break? Post-order HTML rewriting could accidentally disturb public-asset build-ID stamping, miss Vite's generated module tag, duplicate an existing marker, or alter dev-server HTML.
  • Why it does not: the repair is absorbed into the existing build-output owner; it only inserts the marker when absent; the real Vite build suite exercises classic and generated module scripts; existing build-ID and output tests pass; the plugin remains build-only; and both built-browser viewports connect through the mock Gateway.
  • What is not covered? The original production deployment was not rolled back for a new live before-capture. The retained before proof instead applies Cloudflare's documented defer rule to a current-main production build.

Production LOC: +19/−10 (net +9); tests: +12/−1. The production growth is the smallest owner-level expression found after folding the repair into the existing output transform; the earlier standalone plugin and its test-only seam were removed.

Provenance

Reported in #135683 and originally implemented in this PR by @Grynn. The contributor commit and authorship are preserved; the maintainer follow-up rebases it onto current main and consolidates the output transform.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@Grynn
Grynn marked this pull request as ready for review September 2, 2026 07:56
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 9:59 AM ET / 13:59 UTC.

ClawSweeper review

What this changes

The PR marks Control UI boot scripts to bypass Cloudflare Rocket Loader and makes the production Vite build retain that marker on every emitted script.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: the focused repair appears correct and has supplied browser proof, but the exact-head openclaw/ci-gate is failing, so the prior required rank-up move remains unresolved before merge.

Priority: P1
Reviewed head: 6eb9de20b1dad9bf70857555df0ce47cb91b8503

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with direct browser evidence and an emitted-output regression test; the remaining blocker is the failing exact-head gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed production owner is the Control UI Vite build-output transform; supplied paired Chromium screenshots exercise a production build after the Rocket Loader defer transform and show the after-fix /chat interface connecting and rendering at desktop and mobile sizes. The attachment host was unavailable for fresh inspection in this review, but that is not a contributor-action gap.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed production owner is the Control UI Vite build-output transform; supplied paired Chromium screenshots exercise a production build after the Rocket Loader defer transform and show the after-fix /chat interface connecting and rendering at desktop and mobile sizes. The attachment host was unavailable for fresh inspection in this review, but that is not a contributor-action gap.
Evidence reviewed 7 items Current-main gap: Current main still has three unmarked boot scripts, including the module entry, while its fallback explicitly describes the app bundle not starting.
Build-output owner: The PR changes the existing build-only output plugin to perform a post-order HTML transform that adds the opt-out only where absent, then retains the existing build-ID work in that same owner.
Behavior-level regression coverage: The added test runs a Vite build with both an inline script and module entry, then asserts every emitted script opening tag begins with the opt-out attribute.
Findings None None.
Security None None.

How this fits together

The Control UI is a Vite-built browser client served with the Gateway. Its HTML boot scripts must run so the browser can load the application and connect chat to the Gateway.

flowchart LR
A[Control UI HTML] --> B[Vite production build]
B --> C[Built script tags]
C --> D[CDN script optimizer]
D --> E[Browser boot]
E --> F[Gateway chat interface]
B --> G[Build regression test]
Loading

Before merge

  • Resolve merge risk (P1) - The exact-head openclaw/ci-gate currently fails, so required validation has not completed despite the supplied focused test and browser evidence.
  • Resolve merge risk (P1) - Production code is net +9 lines; the change is absorbed into the existing output-transform owner, but the required CI rerun should confirm the combined build-output behavior.
  • Complete next step (P2) - Resolve or rerun the failing exact-head openclaw/ci-gate before merge.
Agent review details

Security

None.

PR surface

Source +9, Tests +11. Total +20 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 19 10 +9
Tests 1 12 1 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 31 11 +20

Review metrics

Metric Value Why it matters
Production versus test delta production +9 net; tests +11 net The added behavior is contained in the existing build-output owner and is accompanied by an emitted-HTML regression test.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #135683
Summary: This PR is the active candidate repair for the canonical Rocket Loader Control UI boot report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain one build-only output transform that preserves the CDN opt-out on all emitted boot scripts, keep the emitted-HTML regression test, and merge only after exact-head CI is green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain one build-only output transform that preserves the CDN opt-out on all emitted boot scripts, keep the emitted-HTML regression test, and merge only after exact-head CI is green.

Do we have a high-confidence way to reproduce the issue?

Yes: the supplied current-main production-build and Rocket Loader transform/browser scenario is concrete, and current source confirms the three boot scripts remain unmarked; this read-only review did not repeat the deployment.

Is this the best way to solve the issue?

Yes: placing the final HTML marking in the existing build-output owner covers both authored inline scripts and Vite-emitted module scripts without adding a runtime fallback or configuration surface.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 20c870265f14.

Labels

Label justifications:

  • P1: This repairs a reproducible Control UI boot failure for deployments using Rocket Loader, leaving affected operators without a usable browser interface.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed production owner is the Control UI Vite build-output transform; supplied paired Chromium screenshots exercise a production build after the Rocket Loader defer transform and show the after-fix /chat interface connecting and rendering at desktop and mobile sizes. The attachment host was unavailable for fresh inspection in this review, but that is not a contributor-action gap.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the Control UI Vite build-output transform; supplied paired Chromium screenshots exercise a production build after the Rocket Loader defer transform and show the after-fix /chat interface connecting and rendering at desktop and mobile sizes. The attachment host was unavailable for fresh inspection in this review, but that is not a contributor-action gap.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed production owner is the Control UI Vite build-output transform; supplied paired Chromium screenshots exercise a production build after the Rocket Loader defer transform and show the after-fix /chat interface connecting and rendering at desktop and mobile sizes. The attachment host was unavailable for fresh inspection in this review, but that is not a contributor-action gap.

Evidence

What I checked:

  • Current-main gap: Current main still has three unmarked boot scripts, including the module entry, while its fallback explicitly describes the app bundle not starting. (ui/index.html:18, 20c870265f14)
  • Build-output owner: The PR changes the existing build-only output plugin to perform a post-order HTML transform that adds the opt-out only where absent, then retains the existing build-ID work in that same owner. (ui/vite.config.ts:417, 6eb9de20b1da)
  • Behavior-level regression coverage: The added test runs a Vite build with both an inline script and module entry, then asserts every emitted script opening tag begins with the opt-out attribute. (ui/src/app/vite-build.node.test.ts:238, 6eb9de20b1da)
  • Current-main comparison: The two production files are unchanged between the pinned PR base and fetched current main, and the PR head is not an ancestor of current main; the repair is not already implemented upstream. (ui/vite.config.ts:398, 20c870265f14)
  • Release provenance: No release tag contains the PR head; the latest known stable tag predates it, so this repair is neither merged nor shipped. (6eb9de20b1da)
  • Supplied real-behavior proof: The captured PR body supplies paired desktop and mobile Chromium screenshots for a production build subjected to the described Rocket Loader transform; the after states show a connected chat, assistant message, and composer. Attachment-host DNS prevented fresh visual inspection in this review, which is a reviewer limitation rather than a contributor proof gap. (6eb9de20b1da)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve or rerun the failing exact-head openclaw/ci-gate before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-02T08:07:13.652Z sha efbc9a8c0fc6326ff8d803d5430b5e62652b4d0c :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-02T14:15:43.811Z sha 36cc7358a8f674dbae54bf8c2a867863f66041f9 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-04T00:32:23.875Z sha 6eb9de2 :: blocked before merge. :: none
  • reviewed 2026-09-04T02:17:56.971Z sha 6eb9de2 :: blocked before merge. :: none

@Grynn
Grynn force-pushed the fix/control-ui-rocket-loader-bypass branch from efbc9a8 to 36cc735 Compare September 2, 2026 14:03
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 2, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 3, 2026
Grynn and others added 2 commits September 4, 2026 00:02
Rocket Loader defers and rewrites every script it is not told to skip, so the
Control UI boot scripts never evaluate when the gateway is served through a
Cloudflare tunnel on a zone with Rocket Loader enabled. The page returns 200,
the shell paints, the mount fallback appears, and nothing throws — a silent
failure with no path from symptom to cause.

Marks all three boot scripts in ui/index.html with the documented
data-cfasync="false" opt-out, and adds a build-only, post-order
transformIndexHtml plugin so the attribute survives the production build:
vite:build-html discards the authored module entry tag and synthesizes a new
one from a fixed attribute set, which would have dropped the opt-out silently
while dev kept working.

Fixes openclaw#135683
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/control-ui-rocket-loader-bypass branch from 36cc735 to 6eb9de2 Compare September 4, 2026 00:03
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 4, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Follow-up proof: Control UI boot behind Rocket Loader

The primary proof is the emitted production index.html, because Vite replaces the authored module entry with a synthesized tag during the build. The recorded main baseline was built from 6b97bae2e1578bf946984a766270a820df0d6aca; the PR build is 6eb9de20b1dad9bf70857555df0ce47cb91b8503.

<!-- main baseline -->
<script>
<script type="module" crossorigin src="./assets/index-C07oPoOm.js">
<script>

<!-- PR -->
<script data-cfasync="false">
<script data-cfasync="false" type="module" crossorigin src="./assets/index-DG1SfJJa.js">
<script data-cfasync="false">

The PR's build-only, post-order transform in ui/vite.config.ts:398 marks every final script tag after Vite has synthesized the module entry. The production-build assertion in ui/src/app/vite-build.node.test.ts:238 covers every emitted script tag, including classic and module scripts.

Captures

Both builds were served through the same deterministic Rocket Loader transform and the same mocked Gateway at desktop 1440×900 and mobile 390×844. The PR and Gateway build IDs matched, the optional community invitation was disabled, and every frame was opened at original resolution. No capture contains an authentication, server-update, refresh, connection-error, or disconnected banner.

Main baseline, desktop 1440×900: all three unmarked scripts are deferred, so the application does not mount.
Main baseline desktop: blank unmounted Control UI

PR, desktop 1440×900: the connected chat, assistant message, navigation, and composer are visible without a banner.
PR desktop: mounted connected Control UI

Main baseline, mobile 390×844: all three unmarked scripts are deferred, so the application does not mount.
Main baseline mobile: blank unmounted Control UI

PR, mobile 390×844: the connected chat, assistant message, and composer are visible with the drawer closed and no banner.
PR mobile: mounted connected Control UI

The accessibility rerun produced byte-identical PNGs:

5ab5fa1729fb37a3aaa449bd81d57779  main-desktop-1440.png
bdcb4fe6e5c47988c1c1f9cb0baba9db  pr-desktop-1440.png
30556bbe03db1e66ce39c804eeed9b19  main-mobile-390.png
835664dc64d65c47d91ccf22592fac37  pr-mobile-390.png

Request traces

main baseline, 1440×900
  scripts deferred: 3/3
  mounted: false
  Gateway requests: []

main baseline, 390×844
  scripts deferred: 3/3
  mounted: false
  Gateway requests: []

PR, 1440×900 and 390×844
  scripts deferred: 0/3
  mounted: true
  first-observed unique Gateway methods:
    connect
    sessions.subscribe
    config.get
    update.status
    exec.approval.list
    plugin.approval.list
    openclaw.approval.list
    agents.list
    sessions.list
    sessions.observer.visibility
    sessions.groups.list
    agent.identity.get
    cron.list
    cron.status
    models.authStatus
    question.list
    chat.startup
    tasks.list
    talk.catalog
    sessions.messages.subscribe
    sessions.groups.defaults
    sessions.branches.list
    sessions.companion.state

Both PR viewports reached connect, chat.startup, and sessions.messages.subscribe; both baseline viewports emitted no Gateway request. The visible-state gate also found no Server updated, Refresh for full capabilities, Auth required, or Could not connect text and no disconnected title.

Accessibility dumps

The baseline body's accessibility snapshot is empty at both 1440×900 and 390×844. The PR's mounted main region produced these snapshots.

Desktop 1440×900:

- main:
  - button "Rename session Main": Main
  - group:
    - button "Show background tasks":
      - img
    - button "Side panel":
      - img
    - button "Open split view":
      - img
    - button "Actions for Main":
      - img
  - log:
    - status
    - paragraph: Control UI boot verified through the mock Gateway.
    - text: OpenClaw
    - time: 2h ago
    - button "Reply to message":
      - img
    - button "Copy as markdown"
  - textbox "Chat composer":
    - /placeholder: Message OpenClaw
  - status
  - status
  - button "Add attachment":
    - img
  - 'button "Permissions: Default"': Default
  - group: gpt-5.5
  - group: "Off"
  - button "Start voice input":
    - img
  - button "Microphone input":
    - img
  - button "Write a message to send." [disabled]:
    - img

Mobile 390×844:

- main:
  - button "Expand sidebar":
    - img
  - button "Rename session Main": Main
  - group:
    - button "Actions for Main":
      - img
  - log:
    - status
    - paragraph: Control UI boot verified through the mock Gateway.
    - text: OpenClaw
    - time: 2h ago
    - button "Reply to message":
      - img
    - button "Copy as markdown"
  - textbox "Chat composer":
    - /placeholder: Message OpenClaw
  - status
  - status
  - button "Add attachment":
    - img
  - 'button "Permissions: Default"'
  - group: gpt-5.5
  - group
  - button "Dictation":
    - img
  - button "Tap to talk":
    - img

Verification and LOC

Production
  ui/index.html                         +3/-3
  ui/vite.config.ts                    +16/-7
  subtotal                             +19/-10 (net +9)

Tests
  ui/src/app/vite-build.node.test.ts   +12/-1
  subtotal                             +12/-1 (net +11)

Total                                  +31/-11

The positive production delta is the final-output invariant that cannot be expressed in the authored HTML alone: Vite discards the authored module tag. The repair is absorbed into the existing Control UI build-output owner, which already stamps the built HTML and assets; it adds no runtime branch, configuration, environment variable, compatibility path, or separate production module.

Risk and coverage

  • Possible regression: the transform could miss Vite's synthesized module tag. The production-build assertion reads the emitted index.html and requires the bypass on every final script tag; the fenced artifact above confirms the real build output.
  • Possible regression: the transform could duplicate an existing marker. It inserts only when a script tag lacks data-cfasync, and the production build shows one marker per tag.
  • Possible regression: consolidating the transform could disturb Control UI build-ID stamping. The existing build-output suite and the 54 focused tests passed, while the browser run used matching build IDs and showed no stale-build banner.
  • Possible regression: the page could technically load without reaching a usable application. Both PR viewports completed the Gateway startup sequence, rendered assistant history, exposed the chat log and composer in the accessibility tree, and passed visual inspection.
  • Scope limit: this is deterministic production-build and browser proof, not a live Cloudflare-edge session. The transform applies Cloudflare's documented rule exactly: unmarked scripts are deferred and data-cfasync="false" scripts are not. No live-service claim is made.

Provenance

@vyctorbrzezowski
vyctorbrzezowski merged commit 57c1802 into openclaw:main Sep 4, 2026
463 of 469 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
…law#136129)

* fix(ui): Control UI blank page behind Cloudflare Rocket Loader

Rocket Loader defers and rewrites every script it is not told to skip, so the
Control UI boot scripts never evaluate when the gateway is served through a
Cloudflare tunnel on a zone with Rocket Loader enabled. The page returns 200,
the shell paints, the mount fallback appears, and nothing throws — a silent
failure with no path from symptom to cause.

Marks all three boot scripts in ui/index.html with the documented
data-cfasync="false" opt-out, and adds a build-only, post-order
transformIndexHtml plugin so the attribute survives the production build:
vite:build-html discards the authored module entry tag and synthesizes a new
one from a fixed attribute set, which would have dropped the opt-out silently
while dev kept working.

Fixes openclaw#135683

* refactor(ui): consolidate Control UI build output transforms

---------

Co-authored-by: Grynn <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
@Grynn
Grynn deleted the fix/control-ui-rocket-loader-bypass branch September 17, 2026 08:58
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 P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Control UI is a blank page behind Cloudflare Rocket Loader — boot scripts carry no data-cfasync opt-out, and the Vite build would drop one

2 participants