Repository navigation
fix(nodes): workspace setup fails during a pairing change - #173393
Merged
Merged
Conversation
A settled node invoke can disappear before its pairing-change response reaches the duplex caller. A concurrent start-frame send then replaces that response with a generic missing-invocation error, preventing existing read recovery from classifying the failure. Mark definitely retired input and join the original invocation result before framing handles the send failure. Join the raw promise, avoiding a dependency on output-listener draining. Live transport failures retain their immediate path; no retry, timeout or authority policy changes. Follow up #173209. The new ordering case fails on original production under Node and Bun and passes after the fix. All 228 focused owner, retention, registry, policy, framing and workspace tests pass on Node. The fifth hourly still lacks its nested cause, so exact CI attribution remains unproven; the unchanged native E2E passes locally.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
marked this pull request as ready for review
October 15, 2026 18:44
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 16, 2026
…aw#173393) A settled node invoke can disappear before its pairing-change response reaches the duplex caller. A concurrent start-frame send then replaces that response with a generic missing-invocation error, preventing existing read recovery from classifying the failure. Mark definitely retired input and join the original invocation result before framing handles the send failure. Join the raw promise, avoiding a dependency on output-listener draining. Live transport failures retain their immediate path; no retry, timeout or authority policy changes. Follow up openclaw#173209. The new ordering case fails on original production under Node and Bun and passes after the fix. All 228 focused owner, retention, registry, policy, framing and workspace tests pass on Node. The fifth hourly still lacks its nested cause, so exact CI attribution remains unproven; the unchanged native E2E passes locally.
ben-milanko
added a commit
to ben-milanko/openclaw
that referenced
this pull request
Oct 23, 2026
Backport upstream openclaw#173209 (ebccf57) and openclaw#173393 (281a6bb). Retain typed invocation failures through listener and start-send setup, including a send concurrent with retired input. The existing bounded workspace read recovery can then classify pairing changes. Preserve live authority checks, retry limits, timeouts and framing bounds. Three final file blobs match the upstream follow-up. Formatting and scoped P2 independent review pass. The local baseline never reached assertions before the unchanged no-output import guard stopped it; targeted lint lacks an installed eslint-plugin-solid prerequisite. Repair-head CI remains required. The original native CI log omitted its nested cause, so this is not claimed as exact sighting attribution. Co-authored-by: ben-milanko <[email protected]>
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.
Related: #173209.
What Problem This Solves
Remote workspace setup loses the pairing-change error when a start-frame send races invocation settlement, preventing the existing read recovery from recognizing it.
User Impact
Workspace discovery retains the original invocation failure during this remaining setup window. Existing read-recovery limits and live-authority rules remain unchanged. No configuration or migration is needed.
Why This Change Was Made
The registry removes settled invocations before their response reaches the duplex caller. A concurrent send then raises a generic missing-invocation error, which closes framing before the structured rejection arrives. Distinguish definitely retired input and join its original invocation result before framing handles the error. Join the raw result rather than the public closure that also drains output listeners, avoiding a send/drain dependency cycle. Other input and transport failures keep their immediate failure path.
Evidence
node invoke is not pendinginstead of the original retryablePAIRING_CHANGED. It passes with the repair; all existing cases remain.Remote workspace skill discovery failed, but its captured Gateway tail omits the nested cause. This proves a second metadata-loss defect, not that the hourly took this exact branch.The additional full-tree unused-export scan is red on four unchanged, unrelated exports:
classifyAttachedCiRun,scrollState,expectInvalidSlug, andmountLoginGate. None is in this patch or has a consumer removed here. The new error export has a production consumer. These findings are recorded, not counted as passing proof.Simplification pass: registry and invocation remain the existing decision/result owners; no new state, cache, timer or retry loop. Production grows by19 lines and the existing test table by15 lines to distinguish retired input and prove the previously untested ordering.