mirror of
https://github.com/openai/codex.git
synced 2026-10-22 19:27:18 +00:00
## Why File blob uploads previously failed immediately on HTTP 502 and 504 responses, even though these transient gateway errors can recover on retry. ## What changed Treat HTTP 502 and 504 as retryable alongside 503, using the existing attempt limit, upload deadline, and server-provided retry delays. ## Testing Expand upload retry tests to cover recovery from 502 and 504, mixed transient responses, exhausted attempts, and retry delays exceeding the remaining budget. Verify that 403, 409, and 500 responses are not retried, including responses without an Azure error code. GitOrigin-RevId: a8e2f6bcf69338fb6d24f4c2d1ee333fb77bdbc0