Repository navigation
Capture host-supplied extension data for each turn - #49846
Merged
copyberry[bot] merged 1 commit intoOct 1, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## What changed Add `turn_extension_init` to thread startup and settings, and expose `WithTurnExtensionData` for turn input, recovery, and settings requests. Accept or reject data updates together with the request that supplies them. Each new turn captures the configured data, including automatically started turns. Accepted steering updates the data for future turns while preserving the running turn's capture. Plain requests preserve the configured data; an empty initializer clears it. The data is not persisted and must be supplied again on cold resume. Expose `current_turn_extension_data` to retrieve typed data only when the requested turn is still running and has not been cancelled. ## Testing Add an integration test covering initial capture, accepted and rejected steering, inheritance by an automatic turn, clearing future data without changing the active capture, and rejection of lookups for an earlier turn. GitOrigin-RevId: dd81eda3e32c7b62d783c772221858f4c0e68264
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/dd81eda3e32c7b62d783c772221858f4c0e68264
branch
from
October 1, 2026 03:31
f431cfe to
408f48c
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/dd81eda3e32c7b62d783c772221858f4c0e68264
branch
October 1, 2026 03:32
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.
Capture host-supplied extension data for each turn
What changed
Add
turn_extension_initto thread startup and settings, and exposeWithTurnExtensionDatafor turn input, recovery, and settings requests. Accept or reject data updates together with the request that supplies them.Each new turn captures the configured data, including automatically started turns. Accepted steering updates the data for future turns while preserving the running turn's capture. Plain requests preserve the configured data; an empty initializer clears it. The data is not persisted and must be supplied again on cold resume.
Expose
current_turn_extension_datato retrieve typed data only when the requested turn is still running and has not been cancelled.Testing
Add an integration test covering initial capture, accepted and rejected steering, inheritance by an automatic turn, clearing future data without changing the active capture, and rejection of lookups for an earlier turn.