Skip to content

Stream disconnected before completion error #14613

Open

Description

@adam-badar

What version of the Codex App are you using (From “About Codex” dialog)?

26.311.21342 (993)

What subscription do you have?

PRO

What platform is your computer?

macOS

What issue are you seeing?

stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)

Image Image

What steps can reproduce the bug?

Just running normally and all of a sudden it crashes.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Mar 13, 2026
  2. added
    bug
    on Mar 13, 2026
  3. jamesx0416 commented on Mar 15, 2026

    @jamesx0416

    I'm getting the same errors, first Stream disconnected before completion: IO error: Connection reset by peer (os error 54), then Stream disconnected before completion: Transport error: network error: error decoding response body.

    Thread ID: 019cf071-0cb0-7ad2-a53f-959c8f3c165e, 019cf068-e90a-77a2-b2f3-dcd87ff12adf, 019cf064-477f-71f1-a5e5-6f9ae18b3efd

    I found that with cache messages like hi, Hello and, what model are you works. The uncached messages(Specific messages) doesn't seem to work, but sometimes it would retry four times and work on the fifth one.

    I have no VPNs or proxies, and this worked two days ago. Also happens on a brand new thread.
    I've tried logging in and out, using bun, brew, the codex app, downgrading. Nothing helps. Happens immediately, not after waiting a long time. The ten retries happens within twenty seconds, and errors out.

  4. A-ZaneT commented on Mar 26, 2026

    @A-ZaneT

    I also encountered it, and it kept reporting errors like this and could not be used normally.


    2026.03.31
    Well, The problem arises with me

  5. cihadturhan commented on Mar 26, 2026

    @cihadturhan

    This is not a network issue. It was working like 30 minutes ago. Same network, same connection.

    Suddenly it gave stream disconnected before completion
    The error message is not self-explanatory. What's the request, what's the response?

  6. Josephrp commented on Mar 29, 2026

    @Josephrp

    i tried deleting the .codex folder but it did not resolve this sudden issue , status.opoenai is green (but it should be reflecting availability issues)

    Image
  7. hasani114 commented on Apr 2, 2026

    @hasani114

    This started happening a few weeks ago and has made the app almost unusable. I keep seeing Reconnectin... loops and have to close the app and reopen it or disable/enable wifi to get it to work. But it only works for a short while before giving the same errors again.

    Is this possibly related to the websocket connection? Is there a way to revert to the previous HTTP protocol while these issues are fixed?

  8. Anonymouscn commented on Apr 3, 2026

    @Anonymouscn

    Same problem. report ID: 019d523e-3b1b-7770-92be-83a23dddc274

    During the agent's execution, a TLS connection interruption occurred. After troubleshooting, I confirmed that this was not an issue with my local network.

  9. AndrewXiGua commented on Apr 3, 2026

    @AndrewXiGua

    Same problem. report ID: 019d5287-e006-7c20-85a8-8ab299d53d7e、019d5281-5bb7-7f01-8e1d-3a77271c8268
    Image

  10. added
    connectivity
    on Apr 25, 2026
  11. seanmaxme commented on May 3, 2026

    @seanmaxme

    Check proxy spelling in ~/.zshrc

    export HTTP_PROXY=http://localhost:1010
    export HTTPS_PROXY=http://localhost:1010
    
  12. weisuio commented on Aug 25, 2026

    @weisuio

    same problem.

  13. vuejshub commented on Oct 23, 2026

    @vuejshub

    same problem.

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

    appbugconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions