Skip to content

Honor disabled redirects in route-aware HTTP clients - #34978

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7eec73f21f506a46e5d4b82f425ddbc9761ca61c
Jul 23, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7eec73f21f506a46e5d4b82f425ddbc9761ca61c

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Honor disabled redirects in route-aware HTTP clients

Why

With system-proxy-aware routing, RouteAwareClientPool handles redirects itself so each hop can resolve its own route. That manual path must also respect clients configured not to follow redirects.

What changed

  • Add no-redirect constructors for standard and ChatGPT Cloudflare-cookie route-aware client pools.
  • Skip manual redirect handling when the underlying client builder has redirects disabled, returning the redirect response to the caller.

Testing

  • Cover both outbound proxy policies and verify that a no-redirect pool returns the initial 302 Found response after one request.

## Why

With system-proxy-aware routing, `RouteAwareClientPool` handles redirects itself so each hop can resolve its own route. That manual path must also respect clients configured not to follow redirects.

## What changed

- Add no-redirect constructors for standard and ChatGPT Cloudflare-cookie route-aware client pools.
- Skip manual redirect handling when the underlying client builder has redirects disabled, returning the redirect response to the caller.

## Testing

- Cover both outbound proxy policies and verify that a no-redirect pool returns the initial `302 Found` response after one request.

GitOrigin-RevId: 7eec73f21f506a46e5d4b82f425ddbc9761ca61c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7eec73f21f506a46e5d4b82f425ddbc9761ca61c branch from a18239b to ad65f01 Compare July 23, 2026 17:44
@copyberry
copyberry Bot merged commit ad65f01 into main Jul 23, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7eec73f21f506a46e5d4b82f425ddbc9761ca61c branch July 23, 2026 17:46
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 23, 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