Codex says its out of context but it just compacted and context was at 100%

Resolved 💬 2 comments Opened Oct 31, 2025 by davidbenhaim Closed Nov 26, 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.48.0-alpha.2

What subscription do you have?

pro

Which model were you using?

gpt-5-codex

What platform is your computer?

macos

What issue are you seeing?

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

Chat just compacted and context was at 100% but chat refused to respond. Couldn't figure out how to roll back conversation or edit history...

I had to run /new

What steps can reproduce the bug?

idk how to reproduce

What is the expected behavior?

it should properly compact and use new context.

Additional information

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

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 10 months ago

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

  • #5957
  • #5775
  • #5695
  • #5385
  • #5544

Powered by Codex Action

aibrahim-oai contributor · 10 months ago

Can you upgrade to the latest version? should be solved in a better way.