Repository navigation
fix: prevent external gateway restart timeouts - #109273
Merged
Merged
Conversation
shakkernerd
force-pushed
the
fix/external-restart-health
branch
from
July 16, 2026 18:35
fba93f0 to
a846053
Compare
shakkernerd
force-pushed
the
fix/external-restart-health
branch
from
July 16, 2026 18:36
a846053 to
d8f038e
Compare
Contributor
Author
|
Merged using rebase. What changed after review:
Verification:
Landed on
Thanks @shakkernerd! |
This was referenced Jul 16, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 17, 2026
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where externally supervised gateway restarts could wait until the full health timeout after the supervisor had already launched the replacement gateway, when that gateway required device identity.
Why This Change Was Made
The restart path now accepts the exact device-identity policy close only after the replacement gateway lock and observed listener ownership agree. Generic gateway health checks remain strict and continue rejecting that close without verified process ownership.
User Impact
OCM-managed gateway restarts now complete after a successful handoff instead of reporting a timeout while the replacement gateway is already running.
Evidence
tbx_01kxp332tz6q443t69tv6fjs65: 65 focused restart tests passed.tbx_01kxp2q9xaw3a4tzkmw7vp1d1x: full OpenClaw build passed.openclaw gateway restartexited successfully.