openai / openai/codex

Token-budget new windows omit notes content, so the first LLM request has no task state

Open
#43,335 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

app bug context enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.