Route backend requests through the HTTP client factory - #34490
Merged
copyberry[bot] merged 1 commit intoJul 21, 2026
Merged
Conversation
## Why Backend-backed features need to use the same outbound routing configuration as the rest of Codex. ## What changed - Build the backend client on a route-aware client pool supplied by `HttpClientFactory`. - Pass the configured factory through app-server account requests, cloud config loading, cloud tasks, and memory rate-limit checks. - Preserve task query encoding, authentication headers, JSON request bodies, and ChatGPT cookie handling during the migration. ## Testing - Add backend-client tests for proxy-policy propagation, task query encoding, bearer authentication, and JSON request bodies. GitOrigin-RevId: c17d162e0dce9cec758df7cdeecf982207c6512b
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/c17d162e0dce9cec758df7cdeecf982207c6512b
branch
from
July 21, 2026 08:29
75b0985 to
dc21b46
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/c17d162e0dce9cec758df7cdeecf982207c6512b
branch
July 21, 2026 08:30
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.
Route backend requests through the HTTP client factory
Why
Backend-backed features need to use the same outbound routing configuration as the rest of Codex.
What changed
HttpClientFactory.Testing