Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(agent-runtimes): install OpenClaw on Windows with Node 24.22.1 (#952)
Ruben Lütke0719182b6081
diff --git a/dodaios/agent_runtimes/openclaw.py b/dodaios/agent_runtimes/openclaw.pyindex e466bca569..723f624d13 100644--- a/dodaios/agent_runtimes/openclaw.py+++ b/dodaios/agent_runtimes/openclaw.py@@ -98,8 +98,11 @@ _DOCTOR_TIMEOUT_S: Final[float] = 120.0_EXIT_CONFIG: Final[int] = 78#: Node.js for Jarvis' private copy (the release OpenClaw's own user-space-#: installer pins; inside the engine range below).-_PRIVATE_NODE_VERSION: Final[str] = "24.21.0"+#: installer pins; inside the engine range below). OpenClaw's live+#: ``install.ps1`` refuses a private Node older than 24.22.1 / 26.12.1 since+#: 2026-10-27 (node:sqlite NUL truncation, nodejs/node#61954), so a lower+#: ``-NodeVersion`` fails every Windows install, pinned release or not.+_PRIVATE_NODE_VERSION: Final[str] = "24.22.1"#: The embedding preset from OpenClaw's embedding guide._EMBED_ENV: Final[dict[str, str]] = {diff --git a/tests/unit/agent_runtimes/test_runtime_manager.py b/tests/unit/agent_runtimes/test_runtime_manager.pyindex 26a869658e..10c9b207de 100644--- a/tests/unit/agent_runtimes/test_runtime_manager.py+++ b/tests/unit/agent_runtimes/test_runtime_manager.py@@ -516,6 +516,17 @@ def test_installers_are_pinned_and_skip_the_browser_and_desktop_control(monkeypaassert "update" not in (hermes.HermesRuntime().update_command() or [])+def test_the_private_node_meets_the_openclaw_installer_floor():+ """OpenClaw's install.ps1 rejects a ``-NodeVersion`` below 24.22.1 on the+ Node 24 line (2026-10-27): every Windows install failed until raised."""+ from dodaios.agent_runtimes import openclaw+ from dodaios.agent_runtimes.versions import parse_version++ version = parse_version(openclaw._PRIVATE_NODE_VERSION)+ assert version is not None and version >= (24, 22, 1)+ assert openclaw._node_supported(version)++def test_the_windows_openclaw_install_runs_npm_scripts_on_the_private_node(monkeypatch):"""npm runs OpenClaw's preinstall via ``cmd /c node``; CI's system Node 22was picked and rejected (2026-10-07). The private Node must come first."""