Repository navigation
Add early yielding for code-mode observations - #48123
Merged
copyberry[bot] merged 1 commit intoSep 25, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## What changed Add an optional `preempt` signal to `CodeModeSession::execute` and `CodeModeSession::wait` so callers can end an observation early while the cell continues running and remains available for later waits. Support the signal in the in-process runtime and across both remote transports: `operation/yield` with the negotiated `yield-observation` capability for stdio, and `YieldObservation` for gRPC. Preserve signals received before gRPC observation registration, and retain normal timeout behavior for older hosts that lack support. ## Testing Add runtime and transport tests covering early execute and wait yields followed by successful cell completion, yields before observation registration, and suppression of yield frames for older stdio hosts. GitOrigin-RevId: 3f8049d8f0582be6b8f0832cc03f2d974a0b8f18
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/3f8049d8f0582be6b8f0832cc03f2d974a0b8f18
branch
from
September 25, 2026 15:42
df2a949 to
55543d8
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/3f8049d8f0582be6b8f0832cc03f2d974a0b8f18
branch
September 25, 2026 15:42
xu-yuanhao
temporarily deployed
to
issue-triage
September 25, 2026 15:53 — with
GitHub Actions
Inactive
xu-yuanhao
temporarily deployed
to
issue-triage
September 25, 2026 15:53 — with
GitHub Actions
Inactive
xu-yuanhao
temporarily deployed
to
issue-triage
September 25, 2026 15:53 — with
GitHub Actions
Inactive
xu-yuanhao
temporarily deployed
to
issue-triage
September 25, 2026 15:54 — with
GitHub Actions
Inactive
Aleck815
temporarily deployed
to
issue-triage
September 25, 2026 16:02 — with
GitHub Actions
Inactive
Aleck815
temporarily deployed
to
issue-triage
September 25, 2026 16:02 — with
GitHub Actions
Inactive
Aleck815
temporarily deployed
to
issue-triage
September 25, 2026 16:02 — with
GitHub Actions
Inactive
Aleck815
temporarily deployed
to
issue-triage
September 25, 2026 16:03 — with
GitHub Actions
Inactive
matthew-pk
temporarily deployed
to
issue-triage
September 25, 2026 16:07 — with
GitHub Actions
Inactive
matthew-pk
temporarily deployed
to
issue-triage
September 25, 2026 16:07 — with
GitHub Actions
Inactive
matthew-pk
temporarily deployed
to
issue-triage
September 25, 2026 16:07 — with
GitHub Actions
Inactive
tradequant491-bot
temporarily deployed
to
issue-triage
September 25, 2026 16:08 — with
GitHub Actions
Inactive
tradequant491-bot
temporarily deployed
to
issue-triage
September 25, 2026 16:08 — with
GitHub Actions
Inactive
tradequant491-bot
temporarily deployed
to
issue-triage
September 25, 2026 16:08 — with
GitHub Actions
Inactive
asheetov
temporarily deployed
to
issue-triage
September 25, 2026 16:08 — with
GitHub Actions
Inactive
asheetov
temporarily deployed
to
issue-triage
September 25, 2026 16:08 — with
GitHub Actions
Inactive
asheetov
temporarily deployed
to
issue-triage
September 25, 2026 16:08 — 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.
Add early yielding for code-mode observations
What changed
Add an optional
preemptsignal toCodeModeSession::executeandCodeModeSession::waitso callers can end an observation early while the cell continues running and remains available for later waits.Support the signal in the in-process runtime and across both remote transports:
operation/yieldwith the negotiatedyield-observationcapability for stdio, andYieldObservationfor gRPC. Preserve signals received before gRPC observation registration, and retain normal timeout behavior for older hosts that lack support.Testing
Add runtime and transport tests covering early execute and wait yields followed by successful cell completion, yields before observation registration, and suppression of yield frames for older stdio hosts.