thousands of stream error: stream disconnected before completion: Rate limit reached for gpt-5-codex error messages

Resolved 💬 3 comments Opened Nov 21, 2025 by SachitNayak Closed Nov 21, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.61.0

What subscription do you have?

API credits

Which model were you using?

gpt-5-codex

What platform is your computer?

Ubuntu 22.04

What issue are you seeing?

⚠️ stream error: stream disconnected before completion: Rate limit reached for gpt-5-codex in organization org

This annoying error keeps hindering my progress in coding. I'm already paying money via API credits but still this stupid error keeps bothering my coding experience.

I'm considering to switch to Claude Code which has better user experience than seeing thousands of this stupid error!

What steps can reproduce the bug?

Literally any task you ask the codex cli to do, after sometime starts throwing 1000s of these errors stupidly for anything. Usually starts when context reaches around 52% or less

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 9 months ago

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

  • #6172
  • #6107
  • #6008
  • #5182

Powered by Codex Action

etraut-openai contributor · 9 months ago

Could you please use the /feedback slash command to upload the session and post the thread ID here? That will help us diagnose the problem.

SachitNayak · 9 months ago

I realized even after I ran npm i -g @openai/codex@latest it had not applied the updates yet and was using older version of codex-cli. I had to restart on a new terminal and the updated codex-cli version was used. In the latest version of codex-cli which is codex-cli 0.61.0 this problem no longer exists. So we can close this issue. Thank you.