Skip to content

stream disconnected before completion: response.failed event received #9635

Closed as not planned

Description

@Meikkun

What version of Codex is running?

codex-cli 0.87.0

What subscription do you have?

Microsoft Foundry API

Which model were you using?

gpt-5.2

What platform is your computer?

Linux 6.18.6-arch1-1 x86_64 unknown

What terminal emulator and version are you using (if applicable)?

Ptyxis 49.2

What issue are you seeing?

After a long session I started having this error: "stream disconnected before completion: response.failed event received". The tool doesn't auto-retry. If I ask to continue in the prompt, the model doesn't seem to be aware the flow stopped.

What steps can reproduce the bug?

Uploaded thread: 019be272-e248-7631-b3f1-449661b6118e

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    CLIIssues related to the Codex CLI
    tool-callsIssues related to tool calling
    on Jan 21, 2026
  2. github-actions commented on Jan 21, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. added
    azureIssues related to the Azure-hosted OpenAI models
    on Jan 21, 2026
  4. etraut-openai commented on Jan 21, 2026

    @etraut-openai
    Contributor

    Thanks for the bug report. Unfortunately, the log information you uploaded didn't come through. We experienced a temporary outage that prevented some logs from being uploaded over the past 12 hours. The issue has been resolved. If you experience this again, please use /feedback to upload your new logs and create a fresh bug report.

    I noticed that you mentioned that you're using the Microsoft Foundry API. We've received a smattering of reports over the past few weeks that users are seeing disconnects when using Azure endpoints. If you see this, you may want to report the problem to Azure.

  5. Xueziq commented on Jan 23, 2026

    @Xueziq

    同样有这个问题,微软openai的gpt-5-chat,codex-cli 0.73.0

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

    CLIIssues related to the Codex CLIazureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions