Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying.

Resolved 💬 3 comments Opened Jun 18, 2026 by ehendrix23 Closed Jun 29, 2026

What version of the Codex App are you using (From “About Codex” dialog)?

26.611.62324

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

Regular message:
"Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying."

What steps can reproduce the bug?

Longer session.

Feedback ID: 019eccf6-1871-7201-92d4-cf0b69975590

What is the expected behavior?

Not getting this issue at all.

Additional information

I also noticed that when this happens "Context" shows 0% used for used and 0 tokens used.
When I then run /compact it works for a bit and then it shows values there.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗