openclaw/src/node-host
scotthuang 819fd9fbe9
fix(node-host): restart stale node host on version mismatch
Restart stale local node-host processes when they reconnect to a newer gateway with a released-version mismatch, so launchd/systemd can restart them with updated code instead of leaving old dynamic imports alive.

Adds gateway mismatch detail propagation, node-host terminal pause handling, and regression coverage for the GatewayClient reconnect-pause path.

Verification:
- node scripts/run-vitest.mjs run src/gateway/client.test.ts -t 'CLIENT_VERSION_MISMATCH' --reporter=verbose
- node scripts/run-vitest.mjs run src/gateway/server.node-version-mismatch.test.ts src/node-host/runner.credentials.test.ts src/gateway/client.test.ts --reporter=verbose
- /Users/steipete/Projects/agent-skills/skills/autoreview/scripts/autoreview --mode local
- Crabbox AWS run_292dcbfd78d9: focused GatewayClient mismatch regression plus server/node-host mismatch tests passed

Co-authored-by: scotthuang <scotthuang@tencent.com>
2026-05-27 08:25:02 +01:00
..
config.ts
exec-policy.test.ts
exec-policy.ts
invoke-system-run-allowlist.test.ts Recheck rebuilt system.run argv [AI] (#84090) 2026-05-20 12:30:26 +05:30
invoke-system-run-allowlist.ts Recheck rebuilt system.run argv [AI] (#84090) 2026-05-20 12:30:26 +05:30
invoke-system-run-plan.test.ts Bind shell script operands after combined options [AI] (#81882) 2026-05-15 14:55:37 +05:30
invoke-system-run-plan.ts Bind shell script operands after combined options [AI] (#81882) 2026-05-15 14:55:37 +05:30
invoke-system-run.test.ts fix(exec): bind approval trust to realpaths (#82825) 2026-05-17 03:41:50 +01:00
invoke-system-run.ts fix(exec): avoid default approval store writes (#86964) 2026-05-26 20:59:24 +01:00
invoke-types.ts
invoke.sanitize-env.test.ts
invoke.test.ts
invoke.ts refactor: reuse shared coercion helpers (#86419) 2026-05-25 21:20:41 +01:00
plugin-node-host.test.ts
plugin-node-host.ts
runner.credentials.test.ts fix(node-host): restart stale node host on version mismatch 2026-05-27 08:25:02 +01:00
runner.test.ts
runner.ts fix(node-host): restart stale node host on version mismatch 2026-05-27 08:25:02 +01:00
with-timeout.ts