Repository navigation
fix(cloud): restore node bootstrap with bundled browser runtime - #154654
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 5:48 AM ET / 09:48 UTC (Revision 2). ClawSweeper reviewWhat this changesPreserves installed browser-package files in cloud-node bootstrap archives and shares the existing browser version, patch, and asset validation with the package verifier. Merge readiness✅ Ready for maintainer review The repair remains necessary on current main. The earlier filesystem-facade finding is resolved, and this review found no remaining blocking defect. Priority: P1 Review scores
Verification
How this fits togetherThe Gateway builds a runtime archive from its installed code and dependencies before provisioning a cloud node. The archive builder validates those files before handing the archive to the existing enrollment and transfer services. flowchart TD
A[Cloud session dispatch] --> B[Gateway archive builder]
C[Installed packages and linked workspaces] --> B
B --> D[Select runtime files]
D --> E[Validate imports or browser package contract]
E --> F[Verified runtime archive]
F --> G[Cloud node enrollment]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +56, Tests +157, Other +34. Total +247 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one shared browser-package validation contract while preserving published runtime layouts and restricting linked workspaces to compiled output. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main collects only dist files for a mandatory browser package whose executable resides under build/src. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes. Preserving installed package layouts and reusing the existing browser-specific validator repairs the packaging owner without duplicating configuration or weakening ordinary dependency checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6404f5bde3d4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
ddb6c98 to
21d7032
Compare
|
Merged via squash.
|
* commit '0883394977d1fb3af657635967f6e447bd7fff9a': (72 commits) fix(ui): await scheduled rail layout in focus test fix(cron): keep healthy active runs from delaying job lists (#154421) fix(plugins): prevent config conflicts during legacy plugin installation (#154539) perf(gateway): reduce repeated session-list work (#154551) fix(tasks): retain admitted work across list retries (#154338) perf(gateway): speed up transcript artifact downloads (#154726) chore(ui): refresh control ui locales (#154580) fix(release): keep two extended-stable months eligible (#154777) fix(tests): avoid avatar descriptor reuse race (#154747) perf(plugins): reduce callback scope overhead (#154625) fix(ui): include final request time in completed work summaries (#149240) fix(ai): avoid retrying conflicting Responses terminal statuses (#149242) fix: identify malformed Code Mode JavaScript as input errors (#149222) fix(doctor): settle imported JSONL transcript leftovers (#154413) fix(cloud): restore node bootstrap with bundled browser runtime (#154654) test(ui): await publication state notifications (#154768) fix(plugins): keep unchanged plugins running across metadata refreshes (#151281) fix: keep chat panel accessibility targets within each pane (#153478) fix: forced Gateway restarts cancel healthy subagent work (#154300) improve: reduce session delivery reader imports (#154740) ...
…claw#154654) * fix(cloud): restore node bootstrap with bundled browser runtime * fix(cloud): route bootstrap walks through filesystem policy
What Problem This Solves
Fixes cloud sessions failing to start on a successfully built Gateway because node bootstrap rejects the bundled browser runtime.
User Impact
Cloud workers can provision from the current Gateway build again. No configuration or dependency changes are required.
Why This Change Was Made
Installed npm bundles retain their published layout and assets, while linked workspace packages remain restricted to their compiled distribution. The browser bundle uses its existing shared version, patched-byte and required-asset checks because optional browser/UMD imports are not a Node import closure. Ordinary dependencies retain import-closure validation; nested dependencies, hidden files and escaping symlinks stay excluded.
Evidence
Both failures reproduced through real
sessions.dispatchon AWS: the initialbuild/srcomission, then the false missing-import error from the browser bundle. With this fix, three cold AWS workers provisioned successfully in 103–112 seconds.The 48 artifact/prebuilt/package regressions and 18 existing package-verifier cases passed, including archived CLI execution, patch tampering, missing imports and linked-source isolation. The focused artifact file costs 5.41 seconds wall time; the real-package file costs 4.35 seconds wall time, with 1.70 seconds in its test (
pnpm test <file> --maxWorkers=1). Full build, changed checks, deslop and independent P2 review passed. Hosted CI cost will be recorded after the run completes.Initial CI found a direct filesystem-library import bypassing the existing OpenClaw facade; that import now uses the facade, and all 71 boundary/bootstrap cases pass. CI also encountered the skill-library fixture cleanup race fixed on main in
103115f2f0b11844d5cf5766424b6ab8e1e5cf01. This branch now includes that fix; replaying the original 12-file shard in its recorded order passed all 406 tests (145.49 seconds local wall time).A subsequent real OpenAI turn exposed a separate missing state-worker executable in the cloud execution bundle. That tool-execution defect is being repaired separately; this PR's live claim is successful provisioning.