Skip to content

Route backend requests through the HTTP client factory - #34490

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c17d162e0dce9cec758df7cdeecf982207c6512b
Jul 21, 2026
Merged

Route backend requests through the HTTP client factory#34490
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c17d162e0dce9cec758df7cdeecf982207c6512b

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 21, 2026

Copy link
Copy Markdown

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

  • 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.
## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c17d162e0dce9cec758df7cdeecf982207c6512b branch from 75b0985 to dc21b46 Compare July 21, 2026 08:29
@copyberry
copyberry Bot merged commit dc21b46 into main Jul 21, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c17d162e0dce9cec758df7cdeecf982207c6512b branch July 21, 2026 08:30
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant