Skip to content

[codex] retry compressed requests uncompressed#30690

Draft
rphilizaire-openai wants to merge 1 commit into
mainfrom
dev/rphilizaire/retry-compressed-request-uncompressed
Draft

[codex] retry compressed requests uncompressed#30690
rphilizaire-openai wants to merge 1 commit into
mainfrom
dev/rphilizaire/retry-compressed-request-uncompressed

Conversation

@rphilizaire-openai

Copy link
Copy Markdown
Contributor

Summary

  • Retry an HTTP Responses request exactly once without compression when a compressed HTTP 400 carries x-openai-retry-uncompressed: true.
  • Require the original request to use zstd and the response signal to be exactly true; generic 400s remain terminal.
  • Rebuild the request with Compression::None while preserving existing authentication and inference-attempt telemetry.

Paired server signal: https://github.com/openai/openai/pull/1087044

Validation

  • cargo check -p codex-core --lib
  • Existing request-compression tests (2 passed)
  • cargo clippy -p codex-core --lib --no-deps -- -D warnings
  • just fmt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant