Repository navigation
fix(gateway): recover cloud worker placement state - #120976
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 9, 2026 07:17
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 10, 2026
* fix(gateway): recover cloud worker placement state Related: openclaw#120953 * test(gateway): type failed placement fixture Related: openclaw#120953
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
Cloud worker lifecycle state could become stale or permanently terminal in four gateway paths:
Why This Change Was Made
The gateway now keeps periodic full reconciliation coalesced while serializing each targeted reconciliation as a fresh pass. Failed placement redispatch reuses the existing generation bump and identity reset, but is admitted only through the same fail-closed environment-gone proof used by session deletion. Worker failure details are redacted and bounded at the service projection, and tunnel liveness tracks actual loop settlement.
User Impact
Operators can explicitly redispatch a failed cloud placement after teardown is proven, while a still-live or unprovable environment remains safely fenced with an actionable Stop cloud worker message. Environment listings expose bounded terminal failure context, and tunnel status no longer claims an abandoned reconnect loop is live.
This PR is gateway-only and makes no Control UI changes.
Evidence
node scripts/run-oxlint.mjs.git diff --checkpasses.Related: #120953