Skip to content

Send model routing hints to the Codex backend - #37345

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d8d415d7fadddecf9a132d05920b856a35ac9960
Aug 7, 2026
Merged

Send model routing hints to the Codex backend#37345
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d8d415d7fadddecf9a132d05920b856a35ac9960

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Send model routing hints to the Codex backend

What changed

  • Add an x-codex-routing-hint header containing the request model and, when selected, the service tier.
  • Send the hint on Responses HTTP requests, remote compaction requests, and WebSocket handshakes, including prewarm connections.
  • Limit the header to Codex-backend authentication with the OpenAI provider, omitting it for API-key and provider-specific credential paths.

Testing

  • Cover routing hints for HTTP, remote compaction, WebSocket streaming, and tiered prewarming, along with the credential paths where the header must be absent.

## What changed

- Add an `x-codex-routing-hint` header containing the request model and, when selected, the service tier.
- Send the hint on Responses HTTP requests, remote compaction requests, and WebSocket handshakes, including prewarm connections.
- Limit the header to Codex-backend authentication with the OpenAI provider, omitting it for API-key and provider-specific credential paths.

## Testing

- Cover routing hints for HTTP, remote compaction, WebSocket streaming, and tiered prewarming, along with the credential paths where the header must be absent.

GitOrigin-RevId: d8d415d7fadddecf9a132d05920b856a35ac9960
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d8d415d7fadddecf9a132d05920b856a35ac9960 branch from dd68752 to 270d932 Compare August 7, 2026 01:00
@copyberry
copyberry Bot merged commit 270d932 into main Aug 7, 2026
27 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d8d415d7fadddecf9a132d05920b856a35ac9960 branch August 7, 2026 01:01
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant