diff --git a/docs/adr/0001-gateway-release-policy.md b/docs/adr/0001-gateway-release-policy.md index fee4f36e6c..ef18291d40 100644 --- a/docs/adr/0001-gateway-release-policy.md +++ b/docs/adr/0001-gateway-release-policy.md @@ -40,8 +40,9 @@ evidence. npm tags. - Embedded release evidence, the product security floor, and the candidate-promotion workflow are removed. -- Setup continues to pin and verify Node `24.19.0`. This decision changes the - OpenClaw npm package selection, not the managed Node runtime. +- Setup continues to pin and verify its managed Node runtime separately from + the OpenClaw npm package selection. The original pin was `24.19.0`; it is now + `24.22.1` to meet the upstream installer minimum. ## Consequences diff --git a/src/OpenClaw.SetupEngine/GatewayInstallPolicy.cs b/src/OpenClaw.SetupEngine/GatewayInstallPolicy.cs index ea2fc92c56..b869e04e4b 100644 --- a/src/OpenClaw.SetupEngine/GatewayInstallPolicy.cs +++ b/src/OpenClaw.SetupEngine/GatewayInstallPolicy.cs @@ -146,7 +146,7 @@ public static class GatewayInstallPolicy { public const string DefaultInstallUrl = "https://openclaw.ai/install-cli.sh"; public const int ProtocolGeneration = 4; - public const string NodeVersion = "24.19.0"; + public const string NodeVersion = "24.22.1"; public const string RecommendedTag = "latest"; public const string FallbackTag = "extended-stable"; diff --git a/tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs b/tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs index 1d3ca7c290..38738726aa 100644 --- a/tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs +++ b/tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs @@ -1971,7 +1971,7 @@ public void InstallCli_BuildInstallCommand_DefaultsToInstallerLatest() GatewayInstallPolicy.NodeVersion); Assert.Contains( - $"bash -s -- --node-version '{GatewayInstallPolicy.NodeVersion}' < \"$installer\"", + "bash -s -- --node-version '24.22.1' < \"$installer\"", command); Assert.DoesNotContain(" --version ", command, StringComparison.Ordinal); Assert.DoesNotContain("| bash", command, StringComparison.Ordinal); @@ -1999,7 +1999,7 @@ public void InstallCli_BuildInstallCommand_DownloadsCompletelyBeforeExecuting() Assert.Contains("--output \"$installer\"", command); Assert.Contains("'https://openclaw.ai/install-cli.sh'", command); Assert.Contains("if ! test -s \"$installer\"", command); - Assert.Contains("bash -s -- --version '2026.5.22' --node-version '24.19.0' < \"$installer\"", command); + Assert.Contains("bash -s -- --version '2026.5.22' --node-version '24.22.1' < \"$installer\"", command); Assert.DoesNotContain("--retry", command); Assert.DoesNotContain("| bash", command); }