Token-budget new windows omit notes content, so the first LLM request has no task state
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What variant of Codex are you using?
App
What feature would you like to see?
After a token-budget window reset (new_context / auto-rollover), the new window’s first LLM request has no task state.
Skills, permissions, environment, and window IDs are rebuilt; notes body is not. Classic compact at least leaves a summary in replacement history.
In-loop notes + history.* retrieval are the right split. The gap is only: the new window never carries the checkpoint, so the model must notes.read_file before it knows what it was doing.
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
Start at the new_context and auto-rollover paths, then trace how the first LLM request rebuilds skills, permissions, environment, and window IDs. Check how in-loop notes and history.* retrieval are handled; done means the replacement window carries the checkpoint so its first request has task state without requiring notes.read_file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- ai, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 56/100