diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index d75393f6d..d6e8e8939 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "ea75cd897182bef44da045be3ab51913ccfa4714", - "syncedAt": "2026-05-04T17:18:44.481Z" + "sha": "103cdd9d96f8f916742a6420b71583abd2f47732", + "syncedAt": "2026-05-04T17:59:58.254Z" } diff --git a/docs/cli/daemon.md b/docs/cli/daemon.md index 4581398c4..69c5fa9f3 100644 --- a/docs/cli/daemon.md +++ b/docs/cli/daemon.md @@ -36,7 +36,7 @@ openclaw daemon uninstall - `status`: `--url`, `--token`, `--password`, `--timeout`, `--no-probe`, `--require-rpc`, `--deep`, `--json` - `install`: `--port`, `--runtime `, `--token`, `--force`, `--json` -- `restart`: `--force`, `--wait `, `--json` +- `restart`: `--safe`, `--force`, `--wait `, `--json` - lifecycle (`uninstall|start|stop`): `--json` Notes: @@ -53,6 +53,7 @@ Notes: - If both `gateway.auth.token` and `gateway.auth.password` are configured and `gateway.auth.mode` is unset, install is blocked until mode is set explicitly. - On macOS, `install` keeps LaunchAgent plists owner-only and loads managed service environment values through an owner-only file and wrapper instead of serializing API keys or auth-profile env refs into `EnvironmentVariables`. - If you intentionally run multiple gateways on one host, isolate ports, config/state, and workspaces; see [/gateway#multiple-gateways-same-host](/gateway#multiple-gateways-same-host). +- `restart --safe` asks the running Gateway to preflight active work and schedule one coalesced restart after active work drains. Plain `restart` keeps the existing service-manager behavior; `--force` remains the immediate override path. ## Prefer diff --git a/docs/cli/gateway.md b/docs/cli/gateway.md index af8a34cf7..7f1592388 100644 --- a/docs/cli/gateway.md +++ b/docs/cli/gateway.md @@ -105,6 +105,16 @@ openclaw gateway run Raw stream jsonl path. +## Restart the Gateway + +```bash +openclaw gateway restart +openclaw gateway restart --safe +openclaw gateway restart --force +``` + +`openclaw gateway restart --safe` asks the running Gateway to preflight active OpenClaw work before restarting. If queued operations, reply delivery, embedded runs, or task runs are active, the Gateway reports the blockers, coalesces duplicate safe restart requests, and restarts once the active work drains. Plain `restart` keeps the existing service-manager behavior for compatibility. Use `--force` only when you explicitly want the immediate override path. + Inline `--password` can be exposed in local process listings. Prefer `--password-file`, env, or a SecretRef-backed `gateway.auth.password`.