Skip to content

Migrate login HTTP construction to HttpClient - #34643

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/714695fb80762d2083e2f7a6414183e2b3b63854
Jul 22, 2026
Merged

Migrate login HTTP construction to HttpClient#34643
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/714695fb80762d2083e2f7a6414183e2b3b63854

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 22, 2026

Copy link
Copy Markdown

Migrate login HTTP construction to HttpClient

Why

codex-http-client is the intended owner of direct reqwest usage.

What changed

  • Build Codex's default and route-aware clients with HttpClientBuilder, and return HttpClient directly to API, model discovery, auth, remote control, skills, and extension callers.
  • Preserve custom CA, proxy, Cloudflare cookie, sandbox, and request-logging policies while removing codex-login's direct reqwest dependency.
  • Use shared HTTP types for auth headers, status codes, transport errors, and login-server tests.

Testing

  • Add a Linux integration test verifying that a regular Responses API turn traverses the configured system proxy.
## Why

`codex-http-client` is the intended owner of direct `reqwest` usage.

## What changed

- Build Codex's default and route-aware clients with `HttpClientBuilder`, and return `HttpClient` directly to API, model discovery, auth, remote control, skills, and extension callers.
- Preserve custom CA, proxy, Cloudflare cookie, sandbox, and request-logging policies while removing `codex-login`'s direct `reqwest` dependency.
- Use shared HTTP types for auth headers, status codes, transport errors, and login-server tests.

## Testing

- Add a Linux integration test verifying that a regular Responses API turn traverses the configured system proxy.

GitOrigin-RevId: 714695fb80762d2083e2f7a6414183e2b3b63854
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/714695fb80762d2083e2f7a6414183e2b3b63854 branch from 13dfe77 to 539c0e1 Compare July 22, 2026 00:51
@copyberry
copyberry Bot merged commit 539c0e1 into main Jul 22, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/714695fb80762d2083e2f7a6414183e2b3b63854 branch July 22, 2026 00:52
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant