fix: restart windows gateway after npm update

This commit is contained in:
Peter Steinberger
2026-03-23 10:19:34 +00:00
parent a0ad47440a
commit 9d3d7f9e65
2 changed files with 5 additions and 0 deletions

View File

@@ -224,6 +224,10 @@ if (\$version -notmatch '$head_short') {
throw 'version mismatch: expected substring $head_short'
}
& \$openclaw models set openai/gpt-5.4
# Windows can keep the old hashed dist modules alive across in-place global npm upgrades.
# Restart the gateway/service before verifying status or the next agent turn.
& \$openclaw gateway restart
Start-Sleep -Seconds 5
& \$openclaw gateway status --deep --require-rpc
& \$openclaw agent --agent main --session-id parallels-npm-update-windows-$head_short --message 'Reply with exact ASCII text OK only.' --json
EOF