codex icon indicating copy to clipboard operation
codex copied to clipboard

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

Open furkancak1r opened this issue 1 year ago • 45 comments

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

furkancak1r avatar Oct 08 '25 07:10 furkancak1r

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

  • #4924
  • #4868

Powered by Codex Action

github-actions[bot] avatar Oct 08 '25 07:10 github-actions[bot]

Same here. MacOS Codex 0.45.0

auto compact needed.

wo0d avatar Oct 08 '25 09:10 wo0d

Same here. Please fix this. We need a more intelligent autocompact

PacooMC avatar Oct 08 '25 14:10 PacooMC

same here. started new one and keeps showing. can't do anything

javothemes avatar Oct 09 '25 10:10 javothemes

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.

matthiasn avatar Oct 09 '25 12:10 matthiasn

Seeing also, macOS 26.1b2 in case germane.

HunterHillegas avatar Oct 09 '25 21:10 HunterHillegas

Same here on Windows.

wadamczyk-insolutions avatar Oct 10 '25 14:10 wadamczyk-insolutions

same, very painful.

Gravezzz avatar Oct 10 '25 15:10 Gravezzz

same here

thedude0606 avatar Oct 10 '25 18:10 thedude0606

I've been encountering this constantly

kevinjohncutler avatar Oct 11 '25 07:10 kevinjohncutler

Got this error today. Need auto context compression.

UI369 avatar Oct 12 '25 19:10 UI369

same here

gugabyte avatar Oct 13 '25 14:10 gugabyte

from shijie.rao:

Is this an issue on the CLI or the VSC extension? Or both?

linear[bot] avatar Oct 13 '25 17:10 linear[bot]

from shijie.rao:

Is this an issue on the CLI or the VSC extension? Or both?

VSC extension

gugabyte avatar Oct 13 '25 22:10 gugabyte

Same here, even typing "hello" causes this. Completely unusable. Happening with any Codex model. Uninstalling, signing out didn't fix.

Switching to Claude Code.

Haruki-Shibuya avatar Oct 14 '25 04:10 Haruki-Shibuya

I am seeing the issue on codex-cli 0.46.0 . Moreover. when you try to "/compact" , context window gets to 100%.

uri-gil avatar Oct 15 '25 08:10 uri-gil

Having the same issue as well, and I don't see any way to clear the earlier history either

Cofucan avatar Oct 15 '25 21:10 Cofucan

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

lordisp avatar Oct 16 '25 03:10 lordisp

@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

lordisp avatar Oct 16 '25 03:10 lordisp

/new seems to be the only way

yong6210 avatar Oct 16 '25 06:10 yong6210