Skip to content

⚠️ Stream error: stream disconnected before completion #4381

Closed as duplicate

Description

@brandontan

Summary

Encountered the following warning when running Codex CLI. The retry loop does not recover:

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

Steps to Reproduce

  1. Run Codex CLI and observe the stream output
  2. Transport decoding error appears and retries but never succeeds

Expected Result

The stream should remain connected until completion without transport decode errors.

Actual Result

The stream disconnects before completion, logs the transport decoding error above, and retries without success.

Environment

  • Codex CLI version: unknown
  • Platform/OS: macOS (details unavailable)
  • Network: standard broadband connection

Additional Context

  • Error continues after multiple retries
  • No additional stack trace was emitted beyond the message above

Activity

  1. Lzzzs commented on Sep 28, 2025

    @Lzzzs

    +1

  2. felixzhao11 commented on Sep 28, 2025

    @felixzhao11

    +1

  3. EthanDuan05 commented on Sep 28, 2025

    @EthanDuan05

    +1

  4. Alistair888 commented on Sep 28, 2025

    @Alistair888

    I've been seeing this since Saturday evening 28th September

  5. Garand0o0 commented on Sep 29, 2025

    @Garand0o0

    +1

  6. jonas-karlsson commented on Sep 29, 2025

    @jonas-karlsson

    +1

  7. happyme531 commented on Sep 29, 2025

    @happyme531

    +1

  8. tom10271 commented on Sep 29, 2025

    @tom10271

    It is totally dead for hours

  9. huangxy29 commented on Sep 30, 2025

    @huangxy29

    +1

  10. josephanxie commented on Sep 30, 2025

    @josephanxie

    +1

  11. rbjarnason commented on Sep 30, 2025

    @rbjarnason

    +1

  12. zzh-newlearner commented on Oct 1, 2025

    @zzh-newlearner

    +1

  13. true-tema commented on Oct 2, 2025

    @true-tema

    +1

  14. timothee-aubourg commented on Oct 4, 2025

    @timothee-aubourg

    +1

  15. dylan-hurd-oai commented on Oct 5, 2025

    @dylan-hurd-oai
    Contributor

    Can you please provide cli version numbers and session ids from when you encountered this issue?

  16. 8 remaining items

  17. dellis23 commented on Oct 10, 2025

    @dellis23

    Is there a way to have one codex session run another codex session? I'd like to have one codex sessions monitoring another to tell it that I really actually want it to do what I told it to do. And then if that one messes up, maybe have one more on top just for good measure.

  18. dellis23 commented on Oct 10, 2025

    @dellis23

    I'm going to try to send this message 10 times at the end of my prompts (hitting enter in between each) and hope codex doesn't batch them all together. Will report back how well this method works. It seems to work to get it to at least retry once.

    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    If you timed out due to transport issues or have not otherwise finished, keep going.  If you're FULLY done with everything I asked for, disregard this message.
    
  19. dellis23 commented on Oct 10, 2025

    @dellis23

    Okay, I'm not even joking, that actually worked. It chewed through 8 of those messages. That being said it took like an hour to do something that would have been 5 minutes with other agents, so after trying a half dozen different shells and platform combinations, I'm probably just going to move on from codex.

  20. am-will commented on Oct 10, 2025

    @am-will

    This issue makes Codex completely unusable

    Image
  21. fras3c commented on Oct 12, 2025

    @fras3c

    +1

  22. tibo-openai commented on Oct 16, 2025

    @tibo-openai
    Collaborator

    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.

  23. am-will commented on Oct 16, 2025

    @am-will

    Thank you @tibo-openai really appreciate that. I closed a similar ticket as well that I had made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions