Repository navigation
Support cancellation and deadlines for realtime attachments - #60443
Merged
copyberry[bot] merged 1 commit intoNov 9, 2026
Conversation
## Why A pending realtime connection handshake can hold up subsequent attachment requests. Callers need to cancel obsolete attempts or limit how long they may take to establish a connection. ## What changed - Add `RealtimeAttachmentOptions` with an optional cancellation receiver and `start_before` deadline to `Op::RealtimeConversationAttach`. - Interrupt pending connection work and finish cleanup before acknowledging cancellation. Reject cancelled or expired requests before replacing an existing conversation, and recheck cancellation and the deadline before publishing a connection. - Preserve a successfully published connection when cancellation arrives later. Dropping a cancellation sender whose value is `false` lets the attempt continue. - Prepare the daemon startup test's socket directory with `codex_uds::prepare_private_socket_directory`. ## Testing Add integration coverage for cancelling a held handshake, skipping cancelled or expired queued requests, preserving the next usable call, and releasing a pending handshake when its deadline expires without a cancellation receiver. GitOrigin-RevId: 7144c1237bcbe3b859f10b654d919ae9ff20cbbb
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/7144c1237bcbe3b859f10b654d919ae9ff20cbbb
branch
from
November 9, 2026 20:25
d97b118 to
9f04d88
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. |
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/7144c1237bcbe3b859f10b654d919ae9ff20cbbb
branch
November 9, 2026 20:25
eloi-vifit
temporarily deployed
to
issue-triage
November 9, 2026 20:25 — with
GitHub Actions
Inactive
eloi-vifit
temporarily deployed
to
issue-triage
November 9, 2026 20:25 — with
GitHub Actions
Inactive
eloi-vifit
temporarily deployed
to
issue-triage
November 9, 2026 20:25 — with
GitHub Actions
Inactive
LeonMatthes
temporarily deployed
to
issue-triage
November 9, 2026 20:38 — with
GitHub Actions
Inactive
LeonMatthes
temporarily deployed
to
issue-triage
November 9, 2026 20:38 — with
GitHub Actions
Inactive
LeonMatthes
temporarily deployed
to
issue-triage
November 9, 2026 20:38 — with
GitHub Actions
Inactive
LeonMatthes
temporarily deployed
to
issue-triage
November 9, 2026 20:39 — with
GitHub Actions
Inactive
coreymjames
temporarily deployed
to
issue-triage
November 9, 2026 20:46 — with
GitHub Actions
Inactive
coreymjames
temporarily deployed
to
issue-triage
November 9, 2026 20:46 — with
GitHub Actions
Inactive
coreymjames
temporarily deployed
to
issue-triage
November 9, 2026 20:46 — with
GitHub Actions
Inactive
coreymjames
temporarily deployed
to
issue-triage
November 9, 2026 20:47 — with
GitHub Actions
Inactive
karasyaka
temporarily deployed
to
issue-triage
November 9, 2026 21:02 — with
GitHub Actions
Inactive
karasyaka
temporarily deployed
to
issue-triage
November 9, 2026 21:02 — with
GitHub Actions
Inactive
karasyaka
temporarily deployed
to
issue-triage
November 9, 2026 21:02 — with
GitHub Actions
Inactive
johnathansun
temporarily deployed
to
issue-triage
November 9, 2026 21:13 — with
GitHub Actions
Inactive
johnathansun
temporarily deployed
to
issue-triage
November 9, 2026 21:13 — with
GitHub Actions
Inactive
johnathansun
temporarily deployed
to
issue-triage
November 9, 2026 21:13 — with
GitHub Actions
Inactive
johnathansun
temporarily deployed
to
issue-triage
November 9, 2026 21:14 — with
GitHub Actions
Inactive
resonatingloop
temporarily deployed
to
issue-triage
November 9, 2026 21:28 — with
GitHub Actions
Inactive
resonatingloop
temporarily deployed
to
issue-triage
November 9, 2026 21:28 — with
GitHub Actions
Inactive
resonatingloop
temporarily deployed
to
issue-triage
November 9, 2026 21:28 — 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.
Support cancellation and deadlines for realtime attachments
Why
A pending realtime connection handshake can hold up subsequent attachment requests. Callers need to cancel obsolete attempts or limit how long they may take to establish a connection.
What changed
RealtimeAttachmentOptionswith an optional cancellation receiver andstart_beforedeadline toOp::RealtimeConversationAttach.falselets the attempt continue.codex_uds::prepare_private_socket_directory.Testing
Add integration coverage for cancelling a held handshake, skipping cancelled or expired queued requests, preserving the next usable call, and releasing a pending handshake when its deadline expires without a cancellation receiver.