You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex session abruptly closed with context window ran out of room error #23375
What version of the Codex App are you using (From “About Codex” dialog)?
26.513.31313 (2867)
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
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?
My Codex session was abruptly stopped with 'Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying' error message.
I think this is the same underlying issue as #7808: the turn hits the context window mid-flight and the session ends instead of auto-compacting and retrying. #7808 has the root-cause analysis and a ready fix branch (additive mid-turn recovery) if it helps triage this one.
Activity
github-actions commentedon May 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
emersonbusson commentedon May 28, 2026
I think this is the same underlying issue as #7808: the turn hits the context window mid-flight and the session ends instead of auto-compacting and retrying. #7808 has the root-cause analysis and a ready fix branch (additive mid-turn recovery) if it helps triage this one.