Open
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.Broken existing behavior primarily owned by an M4/M5 scorecard surface.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
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.3build25D125 - 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:
- The manual update job was still submitted with
KeepAlive, so it repeatedly relaunchedopenclaw updateeven though the package was already at2026.5.27. In this installation it reachedruns = 787. - Each no-op update pass still did
Stopping managed gateway service..., repeatedly killing/restarting the Gateway. - One iteration left
ai.openclaw.gatewayunloaded/stopped rather than bootstrapped. - Separately,
ai.openclaw.nodehad been running since before the update and still had old2026.5.18code in memory. - When the Gateway came back as
2026.5.27, the stale node host connected as2026.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.plistAfter that:
openclaw gateway statusshowed LaunchAgent loaded, runtime active, connectivity probe OK.- CLI version and Gateway version both reported
2026.5.27. - No further
node version mismatchor GatewaySIGTERMevents 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.noderather than producing a Gateway restart storm.
Related issues
This appears related to, but not fully covered by:
- Gateway launchd agent gets unloaded during self-update and never re-bootstrapped (macOS) #85133 - Gateway launchd agent gets unloaded during self-update and never re-bootstrapped
- macOS: launchctl submit can relaunch one-shot update jobs after clean exit #86104 - macOS: launchctl submit can relaunch one-shot update jobs after clean exit
- [Bug]: Gateway should tolerate minor node version skew during subordinate node upgrades #83736 - Gateway should tolerate minor node version skew during subordinate node upgrades
This field report combines all three symptoms in one post-update incident.
Reacted by clawsweeper
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.Broken existing behavior primarily owned by an M4/M5 scorecard surface.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon May 29, 2026
Codex review: this still needs some work.
Summary
Keep open: current main still excludes the reported updater labels from self-disarming, and Doctor deliberately leaves updater-only jobs unchanged.
Reproducibility: Current source deterministically excludes the reported labels from self-disarming and updater-only commands from Doctor removal; no live current-main macOS restart-loop reproduction was run.
Root-cause cluster
Relationship:
canonicalCanonical: #87928
Summary: This issue retains the submitted-updater recovery gap after narrower matcher and lifecycle repairs.
Members:
same_root_cause: macOS: launchctl submit can relaunch one-shot update jobs after clean exit #86104 - Closed as superseded by this issue, preserving the earlier oob-update submitted-job evidence.partial_overlap: fix(launchd): verify profile updater jobs by metadata #97264 - Merged metadata verification covers profile-scoped updater labels but excludes the remaining reported variants.partial_overlap: fix: diagnose and repair stray macOS Gateway restart jobs #142230 - Merged foreign lifecycle-job diagnostics and repair explicitly preserve updater-only commands.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Maintainer decision needed
Next step
Decide updater-only recovery eligibility, then establish failing regressions for the reported labels and implement a visible Doctor/Fix recovery path.
Review details
Best possible solution:
Provide a visible Doctor/Fix recovery action for freshly verified stale updater jobs while preserving active updates and managed services.
Do we have a high-confidence way to reproduce the issue?
Current source deterministically excludes the reported labels from self-disarming and updater-only commands from Doctor removal; no live current-main macOS restart-loop reproduction was run.
Is this the best way to solve the issue?
Extend the existing metadata-verifying launchd owner after deciding updater recovery eligibility; broad label-based removal or relaxed node protocol checks would not establish safe recovery.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 961f85dc8adb.
Label changes
Label changes:
No label changes.
Label justifications:
P0: Corroborated update incidents repeatedly terminate the core Gateway and require manual launchd intervention to recover.impact:crash-loop: Persistent submitted updater jobs repeatedly interrupt Gateway availability after each helper exit.impact:ux-release-blocker: Recovery requires terminal-level service intervention, while current Doctor leaves updater-only jobs unchanged.maturity:stable: The primary owner is the M4 macos-host Gateway Service Lifecycle surface, whose taxonomy includes updater cleanup and stranded-service recovery under the documented update contract.Evidence reviewed
Acceptance criteria:
What I checked:
src/daemon/launchd-update-jobs.ts:18, 961f85dc8adb)src/cli/update-cli/update-command-run.ts:671, 961f85dc8adb)src/daemon/launchd-foreign-jobs.ts:298, 961f85dc8adb)src/daemon/launchd-update-jobs.ts:18, 157d8c2bc3ea)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 27, 2026, 4:41 AM ET / 08:41 UTC.
tylerbittner commentedon Jun 4, 2026
Live repro on 2026.6.1 — still occurring, now with two concurrent loops
Confirming this is not fixed as of
2026.6.1(this issue's evidence stopped at 5.27, and the root-primitive issue #86104 at 5.22). Same failure shape, plus two new wrinkles: a renamed job family and no dedupe across concurrentopenclaw updateinvocations.Environment
2026.6.1(CLI and Gateway both report2026.6.1)v25.9.0ai.openclaw.gateway, bind127.0.0.1:18789What happened
openclaw updatewas run during the 6.1 upgrade. It submitted out-of-band updater jobs vialaunchctl submit, and launchd inferred them as keepalive (matching #86104). Because I invoked the update twice (~21s apart), it left two independent submitted jobs, both running the same worker script and both relaunching after clean exits:Both run the same worker:
/tmp/openclaw-update-6-1-20260604.sh, whose payload isopenclaw update --yes --json --timeout 1200. The package was already at2026.6.1, so every pass was a no-op — but the worker still stopped/restarted the Gateway each cycle.User-visible symptom: the Gateway dies ~1 minute after every start. Structured log shows the loop (paired entries because both jobs fire together, ~every 80s):
Update-worker log confirms paired no-op cycles:
Recovery that worked
After-fix evidence: Gateway held a single stable PID across 8 samples over ~1m40s (previously it was killed every ~80s), and no
SIGTERMevents appeared after the bootout:Two additions beyond the existing report
openclaw updatemore than once produces multiple independent keepalive updater jobs that compound the restart rate. A guard against concurrent/duplicate submitted updater jobs would help.ai.openclaw.manualupdate.<date>.<epoch>, distinct from the earlierai.openclaw.manual-update-*(macOS update can leave manual-update loop and stale node host causing Gateway restart storm #87928) andai.openclaw.oob-update.*(macOS: launchctl submit can relaunch one-shot update jobs after clean exit #86104). Any cleanup/detection keyed on the older names won't catch this variant.(Diagnosed and recovered with AI assistance; all values above are copied from live
launchctl printoutput, the structured gateway log, and the updater worker log on the affected machine.)openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
25 remaining items