Reuse route-aware clients for OpenAI file uploads - #35717
Merged
copyberry[bot] merged 1 commit intoJul 28, 2026
Merged
Conversation
## What changed - Store a request-logging-disabled `RouteAwareClientPool` in session services and use it for file creation, blob upload, and finalization requests. - Preserve the existing system-root fallback for transport-default proxy routes, and emit a warning event when that fallback is used. - Remove the direct `reqwest` dependency from `codex-api` now that uploads use the shared HTTP abstraction. ## Testing - Add coverage for completing multiple uploads through a shared client pool. GitOrigin-RevId: 01842415cad2d349a6bd3869abb3332e8110ebce
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/01842415cad2d349a6bd3869abb3332e8110ebce
branch
from
July 28, 2026 04:55
e828267 to
899539c
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/01842415cad2d349a6bd3869abb3332e8110ebce
branch
July 28, 2026 04:56
Sentinel-Bluebuilder
temporarily deployed
to
issue-triage
July 28, 2026 05:02 — with
GitHub Actions
Inactive
Sentinel-Bluebuilder
temporarily deployed
to
issue-triage
July 28, 2026 05:02 — with
GitHub Actions
Inactive
Sentinel-Bluebuilder
temporarily deployed
to
issue-triage
July 28, 2026 05:02 — with
GitHub Actions
Inactive
drdave-flexnetos
temporarily deployed
to
issue-triage
July 28, 2026 05:16 — with
GitHub Actions
Inactive
drdave-flexnetos
temporarily deployed
to
issue-triage
July 28, 2026 05:16 — with
GitHub Actions
Inactive
drdave-flexnetos
temporarily deployed
to
issue-triage
July 28, 2026 05:16 — with
GitHub Actions
Inactive
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.
Reuse route-aware clients for OpenAI file uploads
What changed
RouteAwareClientPoolin session services and use it for file creation, blob upload, and finalization requests.reqwestdependency fromcodex-apinow that uploads use the shared HTTP abstraction.Testing