Codex CLI - Repeated disconnection due to transport errors

Resolved 💬 5 comments Opened Aug 27, 2025 by dudekula-neural Closed Oct 16, 2025
💡 Likely answer: A maintainer (seratch, member) responded on this thread — see the highlighted reply below.

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 ↗

5 Comments

seratch member · 1 year ago

Is this still happening?

dudekula-neural · 12 months ago

Yes, still see the issue, tried it just now at 11.20AM EST, below is console output, thank you.
p.s. happened to stop the session with ^C, hence the last message/2-lines from codex unrelated to the current issue.

[cid:427edbca-028c-4e63-ab8b-eb1b511971d6]

________________________________
From: Kazuhiro Sera @.*>
Sent: Thursday, August 28, 2025 7:40 AM
To: openai/codex
@.*>
Cc: Khasim Dudekula @.>; Author @.>
Subject: Re: [openai/codex] Codex CLI - Repeated disconnection due to transport errors (Issue #2790)

[https://avatars.githubusercontent.com/u/19658?s=20&v=4]seratch left a comment (openai/codex#2790)<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openai_codex_issues_2790-23issuecomment-2D3233154703&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=OQHjIvwoR3blniIhW3cFhs8nkYnXY-rh5phUa39e8eE&m=cms5hb-TEV3J611hsJKR6gfNdUwP0_VCGrpdeuZPHgum2DS6F2hGONC1_ad2SWKu&s=wHJZkKJ6Gh4Cu4J9A3biJxadevoLsBkgjFM8pj8gXEY&e=>

Is this still happening?

—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openai_codex_issues_2790-23issuecomment-2D3233154703&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=OQHjIvwoR3blniIhW3cFhs8nkYnXY-rh5phUa39e8eE&m=cms5hb-TEV3J611hsJKR6gfNdUwP0_VCGrpdeuZPHgum2DS6F2hGONC1_ad2SWKu&s=wHJZkKJ6Gh4Cu4J9A3biJxadevoLsBkgjFM8pj8gXEY&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_BUEIGGHP3TXPIONOZMBDQDD3P3TEHAVCNFSM6AAAAACE7IRNSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZTGE2TINZQGM&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=OQHjIvwoR3blniIhW3cFhs8nkYnXY-rh5phUa39e8eE&m=cms5hb-TEV3J611hsJKR6gfNdUwP0_VCGrpdeuZPHgum2DS6F2hGONC1_ad2SWKu&s=-q7f2TMIVg4xXaJItsXPMdrwtlFwOOsk3G-lr8acFZE&e=>.
You are receiving this because you authored the thread.Message ID: @.***>

fras3c · 10 months ago
Is this still happening?

are you guys going to fix this? CODEX is unusable!

openphotos-team · 10 months ago

0.46.0 still often encounter the error:
 stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 1/5 in 214ms…

⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 2/5 in 388ms…

⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 3/5 in 865ms…

⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 4/5 in 1.725s…

⚠️ stream error: stream disconnected before completion: Transport error: error decoding response body; retrying 5/5 in 3.004s…

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

tibo-openai collaborator · 10 months ago

We are prioritizing looking into this. I will mark as duplicate here because there are a few other reports, but we are actively working on resolving these issues.