Repository navigation
fix(channels): release inbound debounce at admission - #115603
Merged
Merged
Conversation
Track full dispatch completion separately for error handling and shutdown drain while allowing same-session follow-ups to steer active runs. Fixes #113180. Co-authored-by: Taksh <[email protected]>
steipete
marked this pull request as ready for review
July 29, 2026 05:17
Contributor
Author
|
Merged via squash.
|
This was referenced Jul 29, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 29, 2026
Track full dispatch completion separately for error handling and shutdown drain while allowing same-session follow-ups to steer active runs. Fixes openclaw#113180. Co-authored-by: Taksh <[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.
Fixes #113180
What Problem This Solves
Fixes an issue where users sending a follow-up message while an inbound-debounced turn was still running could have that message held behind the entire prior turn instead of steering the active run. WhatsApp exposed the regression directly, and the shared debounce contract affected every channel adapter using that path.
Why This Change Was Made
The shared inbound debounce contract now separates session-lane admission from full dispatch completion. A keyed debounce lane is released as soon as the message is admitted, while completion remains tracked for error reporting and shutdown drain; abandoned work also releases the lane. The implementation migrates every current channel consumer to that one typed lifecycle boundary instead of leaving channel-specific timing behavior.
Prior art: #113312 identified the WhatsApp failure mode. Its contributor is preserved in the commit's
Co-authored-bytrailer.Channel-consumer survey:
User Impact
Follow-up messages can reach active-run steering after debounce admission rather than waiting for the earlier turn to finish. Channel shutdown still drains admitted work, failures are still surfaced, and a reused conversation key cannot inherit stale completion state.
Evidence
0.91and no accepted/actionable findings.origin/maincompleted without conflicts; the pre/post-rebase stable patch ID is identical (a9b1fb0c2d2024d41270ea543ea19594b8a5d3ef).