Skip to content

0% context free leads to ⚠️ Stream error: stream disconnected before completion #5037

Closed as duplicate

Description

@habbler

What version of Codex is running?

0.46.0

Which model were you using?

gpt-5-codex

What platform is your computer?

Ubuntu bare metal server

What steps can reproduce the bug?

Keep on resuming your codex session until 0% context free.
Then every request results in [⚠️ Stream error: stream disconnected before completion].
Compaction is no longer possible.

What is the expected behavior?

Error message should be: 0% context available. Requests no longer possible.
Offer to truncate context, or edit it manually.
Warn at 5% free with offer to compact.

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions