Skip to content

Retry bootstrap GETs through the system proxy after request failures - #52702

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ac34c3bcfe3bd81c905a7e616d8b821879fbe2c9
Oct 9, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Retry bootstrap GETs through the system proxy after request failures

Why

Account discovery and cloud configuration GETs can fail after connecting but before receiving response headers. These request failures previously bypassed system proxy fallback.

What changed

Allow bootstrap GETs to retry through the system proxy on request errors, alongside the existing connection failure and timeout cases, when fallback is enabled.

Testing

Add regression coverage for connections closed before response headers on accounts/check and config/bundle, verifying successful proxy retries with the original request headers. Extend coverage to ensure HTTP responses with status 401, 403, 407, 429, or 503 do not trigger fallback, and network policy denials prevent requests to both the origin and proxy.

…52702)

## Why

Account discovery and cloud configuration GETs can fail after connecting but before receiving response headers. These request failures previously bypassed system proxy fallback.

## What changed

Allow bootstrap GETs to retry through the system proxy on request errors, alongside the existing connection failure and timeout cases, when fallback is enabled.

## Testing

Add regression coverage for connections closed before response headers on `accounts/check` and `config/bundle`, verifying successful proxy retries with the original request headers. Extend coverage to ensure HTTP responses with status `401`, `403`, `407`, `429`, or `503` do not trigger fallback, and network policy denials prevent requests to both the origin and proxy.

GitOrigin-RevId: ac34c3bcfe3bd81c905a7e616d8b821879fbe2c9
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ac34c3bcfe3bd81c905a7e616d8b821879fbe2c9 branch from 118975d to 4bc83aa Compare October 9, 2026 21:29
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-09T21:29:47.711031Z 118975d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 4bc83aa into main Oct 9, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ac34c3bcfe3bd81c905a7e616d8b821879fbe2c9 branch October 9, 2026 21:29
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026
@novinstack
novinstack deployed to issue-triage October 9, 2026 21:32 — with Image GitHub Actions Active
@novinstack
novinstack deployed to issue-triage October 9, 2026 21:32 — with Image GitHub Actions Active
@novinstack
novinstack deployed to issue-triage October 9, 2026 21:32 — with Image GitHub Actions Active
@Matzenko
Matzenko deployed to issue-triage October 9, 2026 21:39 — with Image GitHub Actions Active
@Matzenko
Matzenko deployed to issue-triage October 9, 2026 21:39 — with Image GitHub Actions Active
@Matzenko
Matzenko deployed to issue-triage October 9, 2026 21:39 — with Image GitHub Actions Active
@Matzenko
Matzenko deployed to issue-triage October 9, 2026 21:41 — with Image GitHub Actions Active
@xinglin-li
xinglin-li deployed to issue-triage October 9, 2026 21:47 — with Image GitHub Actions Active
@xinglin-li
xinglin-li deployed to issue-triage October 9, 2026 21:47 — with Image GitHub Actions Active
@xinglin-li
xinglin-li deployed to issue-triage October 9, 2026 21:47 — with Image GitHub Actions Active
@mscalella
mscalella deployed to issue-triage October 9, 2026 21:47 — with Image GitHub Actions Active
@mscalella
mscalella deployed to issue-triage October 9, 2026 21:47 — with Image GitHub Actions Active
@mscalella
mscalella deployed to issue-triage October 9, 2026 21:47 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 4bc83aa5 Deployed Oct 9, 2026 by mscalella via Translate non-English issue #18945
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.

5 participants