Repository navigation
fix(install): keep --beta on a fresh host instead of silently installing stable - #188005
Merged
Merged
Conversation
Keep beta intent pending until npm is available, then resolve the selected target and enforce its engines before installation. Refresh PowerShell target engines after runtime provisioning as well. Fixes #187982. Regression from #187564. Thanks @McgAtom for the report and installer-entry reproduction.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 30, 2026 01:10
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 30, 2026
…ing stable (openclaw#188005) openclaw#187564 made the installers resolve the target release's engines through npm, but on a host without Node the beta tag lookup ran before npm existed, so install.sh --beta switched the target to latest and cleared the beta request, silently installing stable. The installer now keeps the beta request through Node provisioning, resolves the beta tag afterwards, checks the selected package's engines, and warns visibly before falling back to latest when no beta exists. The PowerShell installer refreshes engines after provisioning too. Fixes openclaw#187982. Thanks @McgAtom for the report.
RomneyDa
added a commit
that referenced
this pull request
Nov 17, 2026
…ing stable (#188005) #187564 made the installers resolve the target release's engines through npm, but on a host without Node the beta tag lookup ran before npm existed, so install.sh --beta switched the target to latest and cleared the beta request, silently installing stable. The installer now keeps the beta request through Node provisioning, resolves the beta tag afterwards, checks the selected package's engines, and warns visibly before falling back to latest when no beta exists. The PowerShell installer refreshes engines after provisioning too. Fixes #187982. Thanks @McgAtom for the report. (cherry picked from commit 6c4a948) Co-authored-by: RomneyDa <[email protected]>
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.
What Problem This Solves
Fixes fresh
install.sh --betainstallations silently selecting stable before Node/npm exists.Fixes #187982. Regression from #187564; the original review identified the cold-host failure in r4410996147. Thanks @McgAtom for the report and installer-entry reproduction.
User Impact
Cold and warm hosts preserve the requested beta channel. If beta cannot be resolved once npm is available, the installer visibly warns before falling back to latest. Runtime admission checks the package actually selected.
Why This Change Was Made
The early engine resolver consumed beta intent when its npm lookup could not run. It now preserves the unresolved request during conservative runtime bootstrap, then resolves the target and enforces its engines before package installation. The later duplicate beta selector is removed.
PowerShell already preserves its beta tag, but now refreshes the target engine after provisioning npm as well. No options, dependencies, schemas, or baselines change.
Evidence
/bin/bash3.2.57, Node 26.12.1, and real npm metadata over a loopback registry. The assembled standalone installer runsparse_args --install-method npm --beta --no-onboard --no-prompt,configure_verbose, andmain; the real SQLite capability probe runs. Provisioning exposes the native tools, and package installation deliberately records its spec and exits 86, matching the reporter's probe boundary. This is live installer-entry/selection proof, not a completed public-registry installation or Homebrew qualification.[email protected], absent beta selectsopenclaw@latestwith a warning, and an incompatible beta engine prevents reaching package installation. Final focused file: 4.066 s test time, 5.46 s wrapper wall time.node scripts/run-vitest.mjs test/scripts/install-sh-beta.test.ts --maxWorkers=1. All HOME/state/cache/prefix/temporary paths are isolated in a private user temporary directory and cleaned up.install-sh.test.ts's quoted-prefix Bash PATH remedy and literal-safe zsh PATH remedy. Replaying the generated commands against untouched basef00dd960e35cand the fix gives identical Bash exit 2 (unmatched quote) and zsh exit 1 (unmatched quote). This patch does not change PATH-remedy quoting. PowerShell execution is among the unavailable-host skips.node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json --incremental, touched-file oxlint and oxfmt,/bin/bash -n scripts/install.sh,git diff --check, and Madge pass (0 cycles).f00dd960e35c, through P2: scoped-clean, no actionable findings. Subsequent edits only fix test lint syntax and remove an unnecessary test-line allocation.check:changed/SQLite inventory is omitted under the campaign's local gate budget; targeted gates above ran instead.Production LOC: +32/-27 (net +5); regression tests: +141; docs: +2. An initial literal-reference search also selected the unrelated package-acceptance workflow suite; that task-owned run was canceled and is not claimed as passing proof. Its existing 256-planner-group admission test passed in 61.699 s for 257 evaluations; the large frozen planner inventory accounts for its cost. The final consumer selection below loads, assembles, or executes the actual installers.
Sibling test command