Repository navigation
fix(install): fail when OpenClaw is not on PATH - #134406
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 26, 2026, 6:50 PM ET / 22:50 UTC (Revision 6). ClawSweeper reviewWhat this changesThe Windows PowerShell installer now reports a failure when the installed Merge readiness✅ Ready for maintainer review Current main and the latest release still report success when the Windows installer cannot find the installed command. This PR remains useful, and the recorded compatibility decision covers its intentional exit-status change. No actionable patch defect was found. Priority: P1 Review scores
Verification
How this fits togetherThe Windows installer installs or upgrades OpenClaw, checks whether its command is available, then refreshes an existing Gateway service and runs Doctor when needed. Its final result reaches the user or calling automation. flowchart TD
A[Windows install or upgrade] --> B[Install OpenClaw]
B --> C[Check command on PATH]
C -->|Missing| D[Show recovery guidance]
D --> E[Report failure to caller]
C -->|Available| F[Refresh service and run Doctor]
F --> G[Report success]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +164, Other +1. Total +165 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the canonical failure result and PATH recovery guidance, then let the normal exact-head merge gates finish. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source follows the warning-and-return path, and the recorded native Windows negative control observed status 0 where failure status 1 was expected; this review did not execute current main. Is this the best way to solve the issue? Yes. Using the installer’s existing failure handler changes the result without introducing another exit path or altering command discovery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e9dc62b26f85. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
Status refresh (2026-09-16): current main still only warns and returns when OpenClaw is missing from PATH, so this fix has not been superseded. Exact head remains conflict-free, proof-sufficient, and required CI is green; no contributor-side code or review-thread action is outstanding. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Related: #133869
What Problem This Solves
Fixes the Windows installer reporting success after an upgrade when the installed
openclawcommand cannot be found on PATH.User Impact
Windows users and automation receive a failed installation status instead of being told an unusable upgrade succeeded. The existing PATH recovery guidance remains visible.
Why This Change Was Made
Preserves Ben.Li’s original fix: record the missing-command failure through
Fail-Install, leaving file-exit/scriptblock exception handling and successful service refresh followed by Doctor unchanged. The branch retains the original contributor commit and reconciles with the current installer.Maintainer decision
Accepted: a Windows install or upgrade that leaves no discoverable
openclawcommand must fail, including for existing automation. This intentional exit-status change is the requested fix, not an unresolved compatibility choice. Preserve PATH recovery guidance and the canonical nonzero file-exit / terminating scriptblock-error behavior.Evidence
15b1b5bcf6d69940ac4c86f89c39f0f7042506d1source on Windows 2025 with Node 24.20.0: 55 passed, zero skipped, including both Windows PowerShell and pwsh. The full-installer upgrade matrix took 16.634 seconds; the release-only file took 87.87 seconds (89.64 seconds dispatcher wall). The expensive real-process matrix is release-only, not added to per-PR CI.66b812f26e725cd709e08860d2cb46ba496cd308. The contributor-preserving refresh at769f1e4bb3841b3317028202575ba3d349b0849bincorporates that repair without changing the two-file installer delta. Native Windows proof and the full-file/API review are reused for byte-identical source; fresh current-head CI and bot review remain required before landing.