Repository navigation
fix(test): retain admitted GitHub receipts after membership changes - #201749
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
November 19, 2026 09:18
vincentkoc
enabled auto-merge (squash)
November 19, 2026 09:19
Member
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 20, 2026
…penclaw#201749) * fix(github): recheck membership before returning session receipts * Revert "fix(github): recheck membership before returning session receipts" This reverts commit 60a5a69. * fix(test): retain admitted GitHub receipts after membership changes
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
The invited-guest resource test still expects membership removal to cancel a GitHub receipt request that has already been admitted. That predates the captured-request contract in #201083 and fails under both Node and Bun.
User Impact
No runtime behavior changes. Qualification now checks that an admitted GitHub receipt read finishes while a fresh request after membership removal is refused.
Why This Change Was Made
Update only the existing pending-receipt expectation and test title. Keep the real held-read boundary, every artifact-byte withholding and replay assertion, the next-request denial, and settlement cleanup unchanged. Session membership still gates new requests.
Related: #199959
Evidence
docs/gateway/operator-scopes.mdestablish that permission changes apply to the next request.git diff --checkpassed.d1ea17096e9dd77aad7d791b63db9d17ff664e8a698c33e5ab044d48fcb7bf9d(197849 bytes). Local dependency-backed execution is unavailable.The final diff changes one existing test only; production source is unchanged.
Hosted dual-runtime validation: https://github.com/openclaw/openclaw/actions/runs/44494366881 (exact head
32b2561a5e4a44a8f3c6422b674c94f1f22b6d42; required PR checks continue).