Repository navigation
fix(install): fall back to portable Node after package manager failure - #134386
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 19, 2026, 5:35 PM ET / 21:35 UTC (Revision 7). ClawSweeper reviewWhat this changesThe Windows installer continues through failed or unusable package-manager attempts to its existing portable Node fallback, with matching documentation and regression coverage. Merge readiness✅ Ready for maintainer review The fix remains necessary: current main and the latest release still stop before portable recovery when a detected package manager fails. The bounded Windows recovery proof is sufficient, and no actionable correctness findings remain. Priority: P0 Review scores
Verification
How this fits togetherThe Windows installer ensures a supported Node runtime before installing OpenClaw. Package-manager results pass through runtime validation; portable Node provides recovery when those attempts cannot supply a usable runtime. flowchart TD
A[Windows setup] --> B{Supported Node available?}
B -->|Yes| F[Install OpenClaw]
B -->|No| C[Try package managers in order]
C --> D{Runtime validation passes?}
D -->|Yes| F
D -->|No| E[Install portable Node]
E --> G{Runtime validation passes?}
G -->|Yes| F
G -->|No| H[Report installation failure]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +150, Docs 0, Other +21. Total +171 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Let setup recover automatically through the existing portable Node owner while retaining supported-runtime checks and leaving working installations untouched. Do we have a high-confidence way to reproduce the issue? Yes, from source: with no supported Node and a detected package manager that leaves validation failing, current main returns before portable recovery. This review did not execute that current-main failure. Is this the best way to solve the issue? Yes. The patch repairs the existing provisioning sequence through one shared guard and the existing portable installer without adding settings, download sources, or a competing recovery owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5ca92f8dd27a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
CI attribution for exact head
Maintainer action needed: rerun the failed job. I am keeping the exact head unchanged so the accepted proof and review remain attributable. |
…rtable-fallback # Conflicts: # docs/install/installer.md
…rtable-fallback # Conflicts: # scripts/install.ps1
|
Merged via squash.
|
openclaw#134386) Windows installations can now recover automatically when winget, Chocolatey, or Scoop fails or leaves an unsupported Node.js runtime. Guarded package-manager attempts warn and continue through the remaining methods to the existing elevation-free portable Node installer. Runtime validation still gates OpenClaw installation. The installer remains the sole owner of runtime provisioning. Updated Windows documentation and regression coverage describe and protect failure fallthrough, successful recovery, and final refusal when no usable runtime can be provisioned. Validation: all 99 exact-head checks completed without failures, including Windows installer CI and openclaw/ci-gate. The isolated Windows recovery trace exercised real portable download, extraction, PATH recovery, and runtime/SQLite validation after an injected Chocolatey failure. Codex review was scoped-clean; ClawSweeper reported no actionable findings or Rank-up moves. Related: openclaw#133869
Backport the validated package-manager fallthrough from #134386 and the bounded stale Winget registration repair from #112055. Co-authored-by: luyifan <[email protected]>
Related: #133869
What Problem This Solves
Fixes an issue where Windows users with winget, Chocolatey, or Scoop installed could not use the elevation-free portable Node fallback when that package manager failed or installed an unsupported runtime. The installer returned immediately even though its final fallback could still complete the installation.
Why This Change Was Made
The three package-manager attempts now share one guarded install-and-validation helper. A failed or unusable result continues through the supported methods and finally reaches the existing user-local portable Node owner. The portable-bootstrap message and Windows installer documentation now describe both absent and failed package managers accurately.
User Impact
A non-admin, broken, or lagging Windows package manager no longer blocks installation when portable Node can be installed successfully.
Evidence
Real isolated Windows portable-Node recovery trace:
The probe removed usable Node directories from process PATH, redirected
LOCALAPPDATAto an isolated temporary root, simulated a detected Chocolatey failure, then ran the real metadata lookup, download, extraction, runtime/SQLite validation, and process-PATH recovery. The temporary root was removed afterward.Install-PortableNode; existing winget, Chocolatey, and Scoop success fixtures cover the shared helper.docs/install/installer.mdto document the broadened fallback contract.oxfmtandgit diff --checkpassed.41386e8c4fa540639035f145ccb4e2cfb3a94a23: all 99 checks completed with no failures; CI gate and Windows installer passed. This supersedes the older CI status and rerun request.ClawSweeper review disposition
The September 19, 2026 19:31 UTC review covers exact head
41386e8c4fa540639035f145ccb4e2cfb3a94a23. It reports no correctness findings, no before-merge requirements, and no Rank-up moves to apply or skip. Its Windows recovery proof is sufficient for this bounded fallback change; it does not claim a real Chocolatey installation failure or a complete OpenClaw installation.