mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why The fallback counter identifies the original transport but gives no indication of what triggered the switch to HTTP. ## What changed Include the triggering Codex error kind and HTTP status, when available, in the fallback warning and the `codex.transport.fallback_to_http` counter. The counter uses `none` when the error has no HTTP status. ## Testing Integration tests assert a single counter increment with the expected tags for HTTP 426 during connection setup, HTTP 403 after retries, server overload, and oversized WebSocket messages. GitOrigin-RevId: 6f8b9d5049da1563e035fff62473c85693f0ad1b