Repository navigation
feat(codex): support caller-owned turn attribution - #1003
Merged
mikehostetler merged 1 commit intoSep 11, 2026
Merged
Conversation
mikehostetler
approved these changes
Sep 11, 2026
mikehostetler
left a comment
Contributor
There was a problem hiding this comment.
The turn metadata validation and the HTTP, SSE, WebSocket, reused-session, and telemetry projections agree with the Codex attribution contract. The focused suites passed: 45 tests. I found no blocking problems.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Add caller-owned Codex turn attribution through
provider_options[:codex_turn_metadata], alongside the existingsession_idandthread_idoptions.client_metadataand attribution headers across buffered HTTP, SSE, and WebSocket requests.response.createframe, including reused connections; expose validated identity in telemetry without replacing the per-call request ID.The application or agent runtime owns logical turns and retains their identity through tool continuations and retries. ReqLLM does not infer turns from messages, generate turn IDs, or change prompt-cache overrides. This repairs the client contract; it does not claim a change in private subscription quota policy.
Type of Change
Breaking Changes
None intended. Attribution is opt-in; existing session/cache behavior is unchanged when the new option is absent.
Testing
mix test: 4,329 passed, 11 skipped, 175 excludedmix quality: passedChecklist
CHANGELOG.mduntouchedRelated Context
AI-assisted implementation and PR description.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.