Repository navigation
Preserve active turn approvals when an earlier turn finishes late - #61801
Merged
copyberry[bot] merged 1 commit intoNov 16, 2026
Conversation
…1801) ## Why A turn's terminal event can arrive after the next turn has started, cancelling the newer turn's pending approval requests and incorrectly changing the thread's active status. ## What changed Track the latest started turn in the app server. Only let completion or abort events for that turn cancel pending server requests and update thread watch status, preserving the existing behavior when no started turn is recorded. ## Testing Add a regression test that delays one turn's completion until the next turn requests command approval, then verifies that the thread remains waiting on approval and the approval can still be accepted to execute the command. GitOrigin-RevId: 521f4fb74728b3e70572839b2e73d2d2b2735f35
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/521f4fb74728b3e70572839b2e73d2d2b2735f35
branch
from
November 16, 2026 12:14
93c4232 to
662a634
Compare
Contributor
Codex Review Summary: 🔄 RunningThis 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. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/521f4fb74728b3e70572839b2e73d2d2b2735f35
branch
November 16, 2026 12:14
MikeZeeOk
temporarily deployed
to
issue-triage
November 16, 2026 12:46 — with
GitHub Actions
Inactive
MikeZeeOk
temporarily deployed
to
issue-triage
November 16, 2026 12:46 — with
GitHub Actions
Inactive
MikeZeeOk
temporarily deployed
to
issue-triage
November 16, 2026 12:46 — with
GitHub Actions
Inactive
MikeZeeOk
temporarily deployed
to
issue-triage
November 16, 2026 12:47 — with
GitHub Actions
Inactive
LongLongSol
temporarily deployed
to
issue-triage
November 16, 2026 12:50 — with
GitHub Actions
Inactive
LongLongSol
temporarily deployed
to
issue-triage
November 16, 2026 12:50 — with
GitHub Actions
Inactive
LongLongSol
temporarily deployed
to
issue-triage
November 16, 2026 12:50 — with
GitHub Actions
Inactive
talbaumel
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
talbaumel
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
talbaumel
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
arminhash93-web
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
arminhash93-web
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
arminhash93-web
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
LongLongSol
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
LongLongSol
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
LongLongSol
temporarily deployed
to
issue-triage
November 16, 2026 12:52 — with
GitHub Actions
Inactive
talbaumel
temporarily deployed
to
issue-triage
November 16, 2026 12:53 — with
GitHub Actions
Inactive
arminhash93-web
temporarily deployed
to
issue-triage
November 16, 2026 12:53 — with
GitHub Actions
Inactive
rqps77-qui3d
temporarily deployed
to
issue-triage
November 16, 2026 12:59 — with
GitHub Actions
Inactive
rqps77-qui3d
temporarily deployed
to
issue-triage
November 16, 2026 12:59 — with
GitHub Actions
Inactive
rqps77-qui3d
temporarily deployed
to
issue-triage
November 16, 2026 12:59 — with
GitHub Actions
Inactive
rqps77-qui3d
temporarily deployed
to
issue-triage
November 16, 2026 13:00 — with
GitHub Actions
Inactive
StrongFart
temporarily deployed
to
issue-triage
November 16, 2026 13:08 — with
GitHub Actions
Inactive
StrongFart
temporarily deployed
to
issue-triage
November 16, 2026 13:08 — with
GitHub Actions
Inactive
StrongFart
temporarily deployed
to
issue-triage
November 16, 2026 13:08 — with
GitHub Actions
Inactive
StrongFart
temporarily deployed
to
issue-triage
November 16, 2026 13:09 — with
GitHub Actions
Inactive
songxuewen89-lang
temporarily deployed
to
issue-triage
November 16, 2026 13:11 — with
GitHub Actions
Inactive
songxuewen89-lang
temporarily deployed
to
issue-triage
November 16, 2026 13:11 — with
GitHub Actions
Inactive
songxuewen89-lang
temporarily deployed
to
issue-triage
November 16, 2026 13:11 — with
GitHub Actions
Inactive
songxuewen89-lang
temporarily deployed
to
issue-triage
November 16, 2026 13:12 — with
GitHub Actions
Inactive
DaddyChris
temporarily deployed
to
issue-triage
November 16, 2026 13:20 — with
GitHub Actions
Inactive
DaddyChris
temporarily deployed
to
issue-triage
November 16, 2026 13:20 — with
GitHub Actions
Inactive
DaddyChris
temporarily deployed
to
issue-triage
November 16, 2026 13:20 — with
GitHub Actions
Inactive
DaddyChris
temporarily deployed
to
issue-triage
November 16, 2026 13:21 — with
GitHub Actions
Inactive
M-verse923
temporarily deployed
to
issue-triage
November 16, 2026 13:24 — with
GitHub Actions
Inactive
M-verse923
temporarily deployed
to
issue-triage
November 16, 2026 13:24 — with
GitHub Actions
Inactive
M-verse923
temporarily deployed
to
issue-triage
November 16, 2026 13:24 — with
GitHub Actions
Inactive
M-verse923
temporarily deployed
to
issue-triage
November 16, 2026 13:25 — with
GitHub Actions
Inactive
arkpain44-ship-it
temporarily deployed
to
issue-triage
November 16, 2026 13:35 — with
GitHub Actions
Inactive
arkpain44-ship-it
temporarily deployed
to
issue-triage
November 16, 2026 13:35 — with
GitHub Actions
Inactive
arkpain44-ship-it
temporarily deployed
to
issue-triage
November 16, 2026 13:35 — 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.
Preserve active turn approvals when an earlier turn finishes late
Why
A turn's terminal event can arrive after the next turn has started, cancelling the newer turn's pending approval requests and incorrectly changing the thread's active status.
What changed
Track the latest started turn in the app server. Only let completion or abort events for that turn cancel pending server requests and update thread watch status, preserving the existing behavior when no started turn is recorded.
Testing
Add a regression test that delays one turn's completion until the next turn requests command approval, then verifies that the thread remains waiting on approval and the approval can still be accepted to execute the command.