Repository navigation
Scope file change approval cancellation to the requesting turn - #59910
Merged
copyberry[bot] merged 1 commit intoNov 6, 2026
Conversation
## Why A delayed file change approval cancellation could interrupt a later turn, even when the original approval was no longer pending. ## What changed Send `Op::CancelPatchApproval` with the approval ID and requesting turn ID from the app server. Resolve cancellations only for a matching pending approval and interrupt its requesting turn only if it is still active. Route legacy `Op::PatchApproval` abort decisions through the same pending-approval handling. ## Testing Add a regression test that cancels an approval, then replays that cancellation while a second turn has a pending approval with the same call ID. Verify that the second approval succeeds and its turn remains active. GitOrigin-RevId: 4c833ccd0f33c2df4e9dfb25e2729ab19b6c879f
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/4c833ccd0f33c2df4e9dfb25e2729ab19b6c879f
branch
from
November 6, 2026 13:21
5f00c1c to
ad1dbba
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/4c833ccd0f33c2df4e9dfb25e2729ab19b6c879f
branch
November 6, 2026 13:22
analiaacostaok
temporarily deployed
to
issue-triage
November 6, 2026 13:30 — with
GitHub Actions
Inactive
analiaacostaok
temporarily deployed
to
issue-triage
November 6, 2026 13:30 — with
GitHub Actions
Inactive
analiaacostaok
temporarily deployed
to
issue-triage
November 6, 2026 13:30 — with
GitHub Actions
Inactive
analiaacostaok
temporarily deployed
to
issue-triage
November 6, 2026 13:31 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Scope file change approval cancellation to the requesting turn
Why
A delayed file change approval cancellation could interrupt a later turn, even when the original approval was no longer pending.
What changed
Send
Op::CancelPatchApprovalwith the approval ID and requesting turn ID from the app server. Resolve cancellations only for a matching pending approval and interrupt its requesting turn only if it is still active. Route legacyOp::PatchApprovalabort decisions through the same pending-approval handling.Testing
Add a regression test that cancels an approval, then replays that cancellation while a second turn has a pending approval with the same call ID. Verify that the second approval succeeds and its turn remains active.