Codex bug: SSE stream disconnects misreported as "other" instead of responseStreamDisconnected
Jack-mi · ghdev · 2026-11-28
A developer filed openai/codex issue #64403: over the app-server protocol (v2 error notifications), SSE stream disconnect errors surface as codexErrorInfo: "other" instead of the documented responseStreamDisconnected.
- Root cause: in codex-rs/protocol/src/error.rs (rust-v0.167.0), tocodexprotocolerror maps RetryLimit, ConnectionFailed, etc., but CodexErrorDetails::Stream() has no arm and falls into the => Other catch-all.
- Impact: clients like Archon classify errors by codexErrorInfo and cannot apply transient-error handling to these stream failures, even though Stream() precisely matches the documented definition of a mid-turn SSE disconnect.
- Proposed fix: map Stream() to ResponseStreamDisconnected (with http status when known), keeping details like "idle timeout waiting for SSE" in the message.
Observed on codex-cli 0.167.0, macOS, model accessed via an OpenAI-compatible gateway.
More from coding & agent
- Standard Agent Specification v0.2.0: an open standard for portable, composable agents — adnan_hashmi · 2026-11-29
- Practitioner's tool sweep: Claude Code excellent but dev-oriented, Replit workflow hasn't hit a wall — laughlinrigby · 2026-11-29
- Pre-tool hooks that block coding agents from editing too early — overkill or useful? — Vegetable-Pound6846 · 2026-11-29
- Karpathy let Claude Code run 7 hours: 45,000 lines, 31 datasets, a few skipped states — AryHHAry · 2026-11-29
- Agent wrote 45k lines in 7 hours but skipped states — verification is the bottleneck — AryHHAry · 2026-11-29
- Agent Skills directory tops 1.5M installs, Vercel and Matt Pocock dominate leaderboard — adnan_hashmi · 2026-11-29