Propagate turn metadata to standalone web search#31911
Open
XMLIU-oai wants to merge 3 commits into
Open
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
47243dd to
1518eb8
Compare
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
sayan-oai
approved these changes
Jul 10, 2026
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.
Summary
Impact
Currently
x-codex-turn-metadatais not passed to standalone web search, which is a metadata-propagation regression.The header contains Search context, including
search_user_metadata, and telemetry attributes such asmodel_id. Search uses plan, residency, and compliance context when applying provider policy.Testing
just test -p codex-app-server standalone_web_search_round_trips_outputjust clippy -p codex-tools -p codex-core -p codex-web-search-extension -p codex-app-serverjust fmtgit diff --checkPOST /api/codex/alpha/searchrequest withoriginator: codex_floraPOST /v1/alpha/searchrequest and verified it includedx-codex-turn-metadatamcp_request_meta -> openai/search_context -> telemetry_attributes.model_idcontained the unique test marker_model_id_from_headers(...)parser against the captured header and verified it returned the same model ID