Codex CLI - Repeated disconnection due to transport errors

Resolved 💬 5 comments Opened Aug 27, 2025 by dudekula-neural Closed Oct 16, 2025

I see the below sequence of errors continuously while summarizing a codebase, I see the same issue when I use codex standalone or within Cursor.

codex Summarize the codebase ...

....
Vector DB:
⚠  stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 4/5 in 1.74s…

Scripts & Ops
⚠  stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 5/5 in 3.083s…

🖐  stream disconnected before completion: Transport error: error decoding response body

>>>>> Attaching template generated by ChatGPT below to report this issue.

Title: Streaming disconnect: “Transport error: error decoding response body” /
“stream disconnected before completion” (Codex CLI X.Y.Z)

Environment

  • Codex CLI: <output of codex --version>
  • OS / Kernel: <e.g., macOS 14.5 / Linux 5.15 (WSL2)>
  • Node: <node -v>
  • Terminal/IDE: Cursor integrated terminal (or <other>)
  • Network: <VPN/proxy? yes/no>

Model & Config

  • Model(s): <e.g., gpt-5, o4-mini>
  • wire_api (if set): <responses|chat>
  • Any relevant ~/.codex/config.toml snippets (redact secrets)

Repro steps

  1. <exact command, e.g.> codex ask "explain main.go"
  2. <optional> codex edit "..." --path src --include "**/*.go"

Expected

  • Stream completes; response rendered in CLI.

Actual

  • Error: “stream disconnected before completion: Transport error: error decoding response body”
  • Timestamp(s): <YYYY-MM-DD HH:MM TZ>
  • Request ID(s) shown in output: <req_...> (if present)
  • Full CLI output (sanitized): <paste between triple backticks>

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗