mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
## Why WebSocket telemetry reparses text frames to extract event kinds that the transport already decodes. ## What changed Pass decoded event kinds to telemetry and report receive failures separately. Keep JSON parsing for timing metrics and as a fallback when stream event decoding fails. Remove the `tokio-tungstenite` dependency from `codex-otel` and restrict it to tests in `codex-core`. Limit wrapped error parsing to error events or failed stream decoding, preserving HTTP error forwarding when unrelated stream fields are malformed. ## Testing Update runtime summary coverage to include receive failures and extend the WebSocket error forwarding test with a malformed stream field. GitOrigin-RevId: e1f9d200fd6d30ec124a2354bdbc01f3082ddde3