Codex ran out of room in the model's context window. Start a new conversation or clear earlier history before retrying.
What version of Codex is running?
0.45.0
Which model were you using?
codex 5 high
What platform is your computer?
wsl
What steps can reproduce the bug?
it gives me this error out of nowhere : Codex ran out of room in the model's context window. Start a new conversation or clear earlier history before retrying.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #4924
- #4868
Powered by Codex Action
Same here. MacOS Codex 0.45.0
auto compact needed.
Same here. Please fix this. We need a more intelligent autocompact
same here. started new one and keeps showing. can't do anything
Same here, all of a sudden Codex bricked itself 🧱 macOS, 0.45.0 and 0.46.0, no change after the update. Occasionally happens minutes into a new session already.
Seeing also, macOS 26.1b2 in case germane.
Same here on Windows.
same, very painful.
same here
I've been encountering this constantly
Got this error today. Need auto context compression.
same here
from shijie.rao:
Is this an issue on the CLI or the VSC extension? Or both?
from shijie.rao:
Is this an issue on the CLI or the VSC extension? Or both?
VSC extension
Same here, even typing "hello" causes this. Completely unusable. Happening with any Codex model. Uninstalling, signing out didn't fix.
Switching to Claude Code.
I am seeing the issue on codex-cli 0.46.0 . Moreover. when you try to "/compact" , context window gets to 100%.
Having the same issue as well, and I don't see any way to clear the earlier history either
same here: codex-cli 0.46.0 Account: xxx (Pro) Context window: 100% left (0 used / 272K) 5h limit: [░░░░░░░░░░░░░░░░░░░░] 0% used Weekly limit: [█░░░░░░░░░░░░░░░░░░░] 5% used
@Cofucan Having the same issue as well, and I don't see any way to clear the earlier history either
/compact summarize conversation to prevent hitting the context limit and
/new start a new chat during a conversation
Anyways, this is probably an annoying bug
/new seems to be the only way