openclaw - 💡(How to fix) Fix macOS update can leave manual-update loop and stale node host causing Gateway restart storm

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

After upgrading OpenClaw from 2026.5.22 to 2026.5.27 on macOS, the Gateway entered a restart loop every ~75 seconds.

The visible loop was:

[ws] node version mismatch ... clientVersion=2026.5.18 gatewayVersion=2026.5.27; closing for supervisor restart
[gateway] SIGTERM received
... gateway relaunch ...
[ws] node version mismatch ...

This required manual launchd intervention to recover the installation.

Root Cause

After upgrading OpenClaw from 2026.5.22 to 2026.5.27 on macOS, the Gateway entered a restart loop every ~75 seconds.

The visible loop was:

[ws] node version mismatch ... clientVersion=2026.5.18 gatewayVersion=2026.5.27; closing for supervisor restart
[gateway] SIGTERM received
... gateway relaunch ...
[ws] node version mismatch ...

This required manual launchd intervention to recover the installation.

Code Example

[ws] node version mismatch ... clientVersion=2026.5.18 gatewayVersion=2026.5.27; closing for supervisor restart
[gateway] SIGTERM received
... gateway relaunch ...
[ws] node version mismatch ...

---

ai.openclaw.manual-update-20260528-1803

---

launchctl bootout gui/501/ai.openclaw.manual-update-20260528-1803
launchctl kickstart -k gui/501/ai.openclaw.node
launchctl bootstrap gui/501 ~/Library/LaunchAgents/ai.openclaw.gateway.plist
RAW_BUFFERClick to expand / collapse

Summary

After upgrading OpenClaw from 2026.5.22 to 2026.5.27 on macOS, the Gateway entered a restart loop every ~75 seconds.

The visible loop was:

[ws] node version mismatch ... clientVersion=2026.5.18 gatewayVersion=2026.5.27; closing for supervisor restart
[gateway] SIGTERM received
... gateway relaunch ...
[ws] node version mismatch ...

This required manual launchd intervention to recover the installation.

Environment

  • OpenClaw before update: 2026.5.22
  • OpenClaw after update: 2026.5.27 (27ae826)
  • npm package version: 2026.5.27
  • Node.js: v25.8.1
  • macOS: 26.3 build 25D125
  • Gateway service: LaunchAgent ai.openclaw.gateway
  • Gateway bind: 127.0.0.1:18789

What happened

The manual update launched on 2026-05-28 via a launchd submitted job:

ai.openclaw.manual-update-20260528-1803

The update did not settle cleanly and produced two nested failure modes:

  1. The manual update job was still submitted with KeepAlive, so it repeatedly relaunched openclaw update even though the package was already at 2026.5.27. In this installation it reached runs = 787.
  2. Each no-op update pass still did Stopping managed gateway service..., repeatedly killing/restarting the Gateway.
  3. One iteration left ai.openclaw.gateway unloaded/stopped rather than bootstrapped.
  4. Separately, ai.openclaw.node had been running since before the update and still had old 2026.5.18 code in memory.
  5. When the Gateway came back as 2026.5.27, the stale node host connected as 2026.5.18; the Gateway detected the mismatch and closed for supervisor restart, creating the visible loop.

Manual recovery that worked

launchctl bootout gui/501/ai.openclaw.manual-update-20260528-1803
launchctl kickstart -k gui/501/ai.openclaw.node
launchctl bootstrap gui/501 ~/Library/LaunchAgents/ai.openclaw.gateway.plist

After that:

  • openclaw gateway status showed LaunchAgent loaded, runtime active, connectivity probe OK.
  • CLI version and Gateway version both reported 2026.5.27.
  • No further node version mismatch or Gateway SIGTERM events were observed after the clean restart.

Expected behavior

openclaw update on macOS should leave the managed runtime in a coherent state:

  • no lingering ai.openclaw.manual-update-* submitted job relaunching after a successful/no-op update;
  • Gateway service bootstrapped/running if it was managed before the update;
  • node host service restarted or otherwise made version-compatible with the upgraded Gateway;
  • if a node/gateway version mismatch is detected after update, diagnostics should point to restarting ai.openclaw.node rather than producing a Gateway restart storm.

Related issues

This appears related to, but not fully covered by:

  • #85133 - Gateway launchd agent gets unloaded during self-update and never re-bootstrapped
  • #86104 - macOS: launchctl submit can relaunch one-shot update jobs after clean exit
  • #83736 - Gateway should tolerate minor node version skew during subordinate node upgrades

This field report combines all three symptoms in one post-update incident.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

openclaw update on macOS should leave the managed runtime in a coherent state:

  • no lingering ai.openclaw.manual-update-* submitted job relaunching after a successful/no-op update;
  • Gateway service bootstrapped/running if it was managed before the update;
  • node host service restarted or otherwise made version-compatible with the upgraded Gateway;
  • if a node/gateway version mismatch is detected after update, diagnostics should point to restarting ai.openclaw.node rather than producing a Gateway restart storm.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix macOS update can leave manual-update loop and stale node host causing Gateway restart storm