Skip to content

Stream disconnected before completion (invalid type: null, expected struct Error) #6710

@voytas75

Description

@voytas75

What version of Codex is running?

codex-cli 0.58.0 and 0.59.0-alpha.5

What subscription do you have?

azureopenai

Which model were you using?

gpt-5-codex and 5.1-codex

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 (codex in WSL2)

What issue are you seeing?

i am on WSL2 Ubuntu@latest and working on python project. Prompted to analyze project and suggest features which was OK. codex suggests. when i choose one idea it started planning, exploring, updating files and unexpectedly thows below:
■ stream disconnected before completion: failed to parse ErrorResponse: invalid type: null, expected struct Error

prompt him to continue and after a few steps it's the same. it can finish implementing a feature. the error appears several times during the work process and regardless of the type of work I do with Codex

What steps can reproduce the bug?

idk, random. maybe a size of project > small.

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIazureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions