Repository navigation
fix(runtime): skip unsupported Node runtimes for helper processes - #197698
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 changes before merge. What this changesThis PR makes Node helper selection apply OpenClaw’s existing supported-version policy. Example: Bun hosts OpenClaw with Node 20.20.2 before Node 24.22.1 on PATH.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored draft open: the runtime-selection repair is useful, but the committed generated probe leaves the central failure unfixed. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe shared resolver receives executable-search environment and an optional required flag, probes installed Node candidates, and returns an executable path or undefined to core and Plugin SDK callers. flowchart TD
A[Core and plugin callers] --> B[Node runtime resolver]
B --> C[Current runtime check]
B --> D[Generated probe materializer]
D --> E[PATH candidate processes]
C --> F[Executable or undefined]
E --> F
Technical reviewBest possible solution: Apply the canonical predicate through the existing resolver and regenerate its shipped probe assets without adding another selection path. Do we have a high-confidence way to reproduce the issue? Source shows that Bun-hosted resolution accepts Node 20.20.2 before a supported PATH candidate because the generated probe lacks version admission; no target code was executed. Is this the best way to solve the issue? Reusing the canonical version predicate is the smallest complete repair, provided its generated production copies are updated too. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 83e3641e0921. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +5, Tests +37, Docs +1. Total +43 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 6:05 AM ET / 11:05 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…enclaw#197698) * fix: skip unsupported Node runtimes for helper processes * fix(runtime): regenerate supported Node probe * fix(ci): retain Node version contract in sparse harnesses
Source: f8de201 (openclaw#197698) Release adaptation: enforce the floor in the baseline shared sync/async preparation owner; preserve its async resolver. Regenerate runtime assets canonically. Exclude unrelated CI allocation changes. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 63f19c40e7283d54dfc12bec37aeb50508a117a8)
What Problem This Solves
Fixes Node helper subprocesses selecting an unsupported system Node ahead of a supported installation when OpenClaw runs under Bun. In CI, Gateway post-ready maintenance launched Node 20.20.2 and failed to parse a compiled module's
usingdeclaration despite Node 24.22.1 being installed.User Impact
Node-only helpers select a runtime supported by OpenClaw. If none is available, the resolver returns
undefinedthrough its existing contract. PATH hardening, candidate order, required flags, and caller environment handling stay unchanged.Why This Change Was Made
The current-runtime fast path and standalone probe now use the existing canonical Node support predicate. The generated executable programs are regenerated through their owner. Existing resolver, generated-program, and child-process tests cover the behavior, and the SDK documentation describes the supported-runtime contract. Sparse CI and source-scanner fixtures retain the canonical version module required by the resolver.
Evidence
settlescase with official Node 20.20.2 ahead of supported Node in the test subprocess PATH. Before regeneration it fails on the sameusingsyntax error; afterward the unchanged case passes. Results: 1 failed / 2 skipped before, 1 passed / 2 skipped after. Total wall times: 46.32s and 32.26s.The mixed-runtime command is the normal test owner with an isolated fixture PATH: