Skip to content

[Producer] Upstream Bug – Streaming fails on first message with disconnect/retry loop #53

@github-actions

Description

@github-actions

Context

Mirrors upstream bug: openai#1481

On first message after codex login, users get repeated streaming errors:
"stream error: stream disconnected before completion: stream closed before response.complete; retrying …"

Hypothesis

Initial session/bootstrap call or first streaming request handling has a race or transport retry edge case. Reported across macOS/Windows and various Node versions (per upstream thread).

Acceptance Criteria

  • Repro steps documented and automated repro added
  • Root cause identified (transport, retry policy, auth bootstrap, or model routing)
  • Fix implemented with resilient retry/backoff and correct terminal feedback
  • Tests cover first-message path and regression on reconnects
  • Verified on macOS and Linux; Windows sanity check

Refs: #6, upstream: openai#1481

Metadata

Metadata

Assignees

No one assigned

    Labels

    producerProducer-created planning/analysis taskproducer functionalityFunctional task generated by producer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions