Skip to content

⚠️ Stream error: stream disconnected before completion #4381

@brandontan

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

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