fix: keep gateway shutdown runtime stable across updates

This commit is contained in:
Peter Steinberger
2026-05-04 06:46:16 +01:00
parent 4c68bfdb6c
commit bc0b54e844
9 changed files with 88 additions and 5 deletions

View File

@@ -93,6 +93,12 @@ curl -fsSL https://openclaw.ai/install.sh | bash -s -- --install-method npm --ve
npm i -g openclaw@latest
```
Prefer `openclaw update` for supervised installs because it can coordinate the
package swap with the running Gateway service. If you update manually while a
managed Gateway is running, restart the Gateway immediately after the package
manager finishes so the old process does not keep serving from replaced package
files.
When `openclaw update` manages a global npm install, it installs the target into
a temporary npm prefix first, verifies the packaged `dist` inventory, then swaps
the clean package tree into the real global prefix. That avoids npm overlaying a