Context just compacted, read 0% used, yet unable to continue
Open
Nobody has claimed this yet.
bug
CLI
context
session
windows-os
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of Codex CLI is running?
0.147.0
What subscription do you have?
Pro
Which model were you using?
5.3 spark
What platform is your computer?
Windows
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
Having encountered many times the bug where Codex sees itself with the context windows full, and unable to compact it due to lack of context space, I compacted it manually, being at 63% if I remember correctly.
Having done this, I ask it to continue, and it says it cannot, due to having run out of context space, despite it reading 0% used in the status bar.
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?
Uploaded thread: 01a0167c-a682-7f12-b0a2-f78a0416c866
What is the expected behavior?
No response
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests; start by inspecting the uploaded thread and reproducing the report on Windows with Codex CLI 0.147.0. Trace the context-compaction status and out-of-context error paths, and consider the issue done when a manually compacted thread can continue instead of reporting that the context window is full.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100