Skip to content

fix: enforce Node 22 runtime before startup - #461

Open
Kaguya-19 wants to merge 1 commit into
OpenBMB:mainfrom
Kaguya-19:codex/fix-node22-runtime-guard
Open

fix: enforce Node 22 runtime before startup#461
Kaguya-19 wants to merge 1 commit into
OpenBMB:mainfrom
Kaguya-19:codex/fix-node22-runtime-guard

Conversation

@Kaguya-19

Copy link
Copy Markdown
Collaborator

Summary

  • reject Node versions outside ">=22.13.0 <23" in the shared runtime check, with a clearer native ABI mismatch message
  • align UI and edgeclaw-memory-core engine ranges with the root package and add a root .nvmrc for Node 22
  • run the runtime check from the UI server entry so direct desktop/server starts fail before loading native packages
  • add a regression test covering Node 22 acceptance and Node 25 rejection

Verification

  • Node 25.5.0: node scripts/check-node-runtime.mjs fails immediately with the Node 22 requirement
  • Node 22.22.0: node scripts/check-node-runtime.mjs passes
  • Node 22.22.0: tsx --test tests/cli/check-node-runtime.spec.ts passes
  • Node 25.5.0: node --import tsx ui/server/index.js fails at runtime check before native package loading
  • Node 22.22.0: npx tsc -p tsconfig.json --noEmit passes in the dependency-installed worktree
  • Node 22.22.0: npm --workspace ui run start:built starts both UI server and gateway on temporary ports, then was stopped cleanly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant