Skip to content

Keep response streams alive through connection failures - #37485

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/646553290c865a1332abd30c4a64ed9266bbfc6f
Aug 7, 2026
Merged

Keep response streams alive through connection failures#37485
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/646553290c865a1332abd30c4a64ed9266bbfc6f

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Keep response streams alive through connection failures

What changed

  • Classify HTTP connection failures separately from other network errors without exposing request URLs.
  • For sampling requests, retry connection failures with exponential delays from 5 to 60 seconds and show a Reconnecting... waiting for network stream error.
  • Preserve the normal stream retry budget while waiting for the provider to become reachable. Keep the existing bounded retry behavior for other retryable errors.

Testing

  • Verify connection errors are classified without leaking URL contents.
  • Verify a turn recovers after its provider becomes reachable and still applies the configured retry limit to a subsequent incomplete stream.

## What changed

- Classify HTTP connection failures separately from other network errors without exposing request URLs.
- For sampling requests, retry connection failures with exponential delays from 5 to 60 seconds and show a `Reconnecting... waiting for network` stream error.
- Preserve the normal stream retry budget while waiting for the provider to become reachable. Keep the existing bounded retry behavior for other retryable errors.

## Testing

- Verify connection errors are classified without leaking URL contents.
- Verify a turn recovers after its provider becomes reachable and still applies the configured retry limit to a subsequent incomplete stream.

GitOrigin-RevId: 646553290c865a1332abd30c4a64ed9266bbfc6f
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/646553290c865a1332abd30c4a64ed9266bbfc6f branch from ccd0148 to 5a0d092 Compare August 7, 2026 18:35
@copyberry
copyberry Bot merged commit 5a0d092 into main Aug 7, 2026
24 of 26 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/646553290c865a1332abd30c4a64ed9266bbfc6f branch August 7, 2026 18:36
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 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.

2 participants