Repository navigation
fix(deploy): verify the Control UI build identity instead of rebuilding it - #6
Merged
Merged
Conversation
tomorrowflow
force-pushed
the
main
branch
4 times, most recently
from
September 22, 2026 06:47
07e5481 to
c595e7a
Compare
tomorrowflow
force-pushed
the
main
branch
5 times, most recently
from
September 29, 2026 14:58
b3d4f6c to
ca5f8f1
Compare
deploy-globally rebuilt the Control UI after `npm i -g .` on the belief that `pnpm build` did not produce it. build-all already runs ui:build and write-build-info under one shared build identity, and `npm i -g .` ships both. The extra rebuild re-derived the UI build ID from the git HEAD of that moment, so a commit landing between `pnpm build` and the deploy step stamped a different ID than dist/build-info.json. The Gateway then rejected its own bundled UI as stale and served 503 "Control UI assets could not be prepared", and doctor could not repair it because the global install has no ui/ sources. Verify that the shipped index.html build ID matches the installed build-info.json instead of regenerating half of the pair.
tomorrowflow
force-pushed
the
fix/doctor-findings
branch
from
October 2, 2026 13:42
f5dfc2b to
04010f5
Compare
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.
Problem
openclaw doctorreported "Control UI assets do not match the current Gateway build", and the Control UI served 503 "Control UI assets could not be prepared". Doctor couldn't repair it ("ui/ sources not present").scripts/deploy-globally.mjsrebuilt the UI afternpm i -g ., assumingpnpm builddoesn't produce it. In factbuild-allalready runsui:buildandwrite-build-infounder one shared identity (scripts/lib/build-identity.mts). The second build took its build ID from whatever git HEAD was current at that moment, so a commit landing mid-deploy stampedindex.htmlwith a different ID thandist/build-info.json. The Gateway then rejected its own bundled UI as stale.Solution
deploy-globally.mjs: drop the UI rebuild. Instead, check that the shippedindex.htmlbuild ID equalsdist/build-info.json#buildIdonce Vite's 64-hex public-asset digest is stripped, the same normalizationsrc/infra/control-ui-assets.tsuses. Fail the deploy loudly on a mismatch. The caller comment insync-and-deploy.shis updated to match.docs/fork-features.txt: assertverifyControlUiBuildIdentity()so an upstream sync cannot silently bring the rebuild back.Rebase note
The original branch was cut from the pre-re-cut 2026.9.7 history (100 commits, conflicting). It is now one commit on current
main. The original speech-skills commit was dropped:mainalready giveskokoro-ttsandwhisper-asrvalid frontmatter with127.0.0.1endpoints.Evidence
edf58fc) reports a match:2026.9.7-edf58fcdd506-2026-10-02T11-35-53.380Zequals the build-infobuildId. The next deploy will not be refused for an install that is already healthy.inspectControlUiAssetHealth, which strips the-<64 hex>suffix and compares with the expected build ID).node --check,bash -n,oxfmt --check,check-fork-features(83 present) andgit diff --checkare clean.🤖 Generated with Claude Code