Repository navigation
chore: align concurrent session conflict expectations - #184667
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Fixed: Concurrent session regression coverage now checks the canonical rejection phase while preserving worker admission and stale CLI fork protections. |
This was referenced Oct 26, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 27, 2026
Align concurrent session conflict regression coverage with the canonical earlier rejection while preserving worker admission and stale CLI fork protections.
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 two concurrent-session regression tests that still expected later recovery errors after the canonical session-entry compare-and-swap began correctly rejecting genuine row changes earlier.
User Impact
There is no user-visible product change. The affected tests continue protecting worker admission, worktree cleanup, and stale CLI fork recovery while checking the error phase the current storage owner actually reaches.
Why This Change Was Made
The worker runtime case changes the required session row after worktree preparation, so the session-entry patch compare-and-swap rejects it before the later worker-admission guard. The caller-change control mutates a different admitted row and still reaches that later guard.
The CLI process case similarly performs a concurrent durable rebind before the stale turn commits. It now receives the canonical session-entry patch conflict before successor persistence can construct its later aggregate error. The nonzero process exit, newer durable binding, exact stale-fork arguments, no-dispatch behavior, absent persisted worktree fields, and cleanup assertions are unchanged.
Evidence
The original CI failures reproduced the earlier canonical conflict in both cases on source whose relevant test and producer blobs are identical to this change's base.
On the exact candidate:
core-test-gateway-serverandcore-test-config-clitype graphs passed.PR CI and hosted review remain pending after publication.