Repository navigation
SWF(bug): ship React WebUI in dev and release builds - #70
Merged
devin-ai-integration[bot] merged 3 commits intoDec 5, 2026
Merged
devin-ai-integration[bot] merged 3 commits into
devin-ai-integration[bot] merged 3 commits into
Conversation
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
…/1796439911-ship-react-webui
devin-ai-integration
Bot
merged commit Dec 5, 2026
e6cd615
into
refactor/pilo-design
5 checks passed
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.
Switch
pnpm devand the release WebUI job from the legacy nsh packager (scripts/build-nsh-web.mjs) to the Vite React WebUI build so both dev and release builds actually ship the React Remote WebUI.改动说明
scripts/dev.mjs: Build the React WebUI via Vite into.nsh/web-dev-outstaging, publish assets before atomically swappingdist/index.htmlwithpilo-dev-reload.jsinjected (preserving the last good build on failed rebuilds), and point--webat Vite instead of legacynsh dev --target web..github/workflows/release.yml: Update thewebuijob to set up pnpm + Node 22, install frozen dependencies, runpnpm build:web, and verify the bundle withscripts/verify-react-webui.mjs. Artifact upload/download and desktop packaging are unchanged.scripts/verify-react-webui.mjs&tests/unit/webui-build.spec.mjs: Regression tests verifying the dev launcher, release workflow definition, andpnpm build:weboutput produce<div id="root"></div>, an existing/assets/*.jsmodule, and no legacynsh-app/nsh-fetchmetadata.Legacy WebUI dead-code assessment (not removed in this PR):
web/App.tsx/web/WebApp.tsxare no longer shipped, but legacy files cannot be deleted wholesale yet becauseapp/tests/mobile-web-fixture.tsx,app/tests/web-workspace-storage.test.ts,tests/unit/optimize-web-bundle.spec.mjs, andscripts/release-version.py(web/nsh.json) still reference them, and React itself importsweb/transcript-subscriptions.ts.验证方式
Try it:
Before fix (
tests/unit/webui-build.spec.mjs): 1 pass, 2 failAssertionError [ERR_ASSERTION]: Expected a React root in dist/index.htmlAssertionError [ERR_ASSERTION]: Expected the release WebUI job to run pnpm build:webAfter fix:
node --test tests/unit/webui-build.spec.mjs: 3/3 pass (dev launcher,release WebUI job,release build).pnpm test: 350 unit + 22 integration pass, 0 fail.pnpm check: pass.pnpm build:web && node scripts/verify-react-webui.mjs: built in 1.59s, exit 0.Real macOS Host runs (ARM64):
pnpm devHost (http://172.16.4.2:48511/):200 text/htmlwith<div id="root"></div>,/assets/index-DU-3ojfM.js(200),/pilo-dev-reload.js(200), and nonsh-app/nsh-fetch. Rendered in Chrome at/pair:Pilo.app(0.0.0-verify) (http://172.16.4.2:27237/, tested with repodist/moved aside):200 text/htmlmatchingContents/Resources/webui/index.htmlSHA-256,<div id="root"></div>,/assets/index-DU-3ojfM.js(200),/pilo-dev-reload.js(404), and nonsh-app/nsh-fetch. Rendered in Chrome at/pair:Untested:
release.ymlexecution, macOS signing/notarization, and Windows/Linux release builds.verify-react-webui.mjsusesprocess.argv[1]/fileURLToPathfor Node 22 compatibility).Implemented in session Ship the React WebUI in dev and release builds
Review with Devin · Open in Devin Desktop