You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ahead of time (background) context compaction to hide latency #6841
When Codex CLI performs compaction it feels slow and blocking which hammers the developer experience. I was thinking whether Codex could support non-blocking, background compaction that triggers ahead of the context limit, so users can keep using it while context is being compacted.
When the context approaches a particular threshold of the context window (e.g. ~75%), automatically trigger a background compaction - however, keep letting the user continue to submit prompts while compaction runs, as long as there's still context window free / available.
When compaction completes, on next idle occasion, pre-append the compacted context in front of the last user turns / context.
This would make compaction effectively “instant” from the user’s perspective and reduce cases where long sessions feel sluggish.
changed the title [-]Ahead of time (background) background context compaction to hide latency[/-][+]Ahead of time (background) context compaction to hide latency[/+]on Nov 18, 2025
Activity
github-actions commentedon Nov 18, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[-]Ahead of time (background) background context compaction to hide latency[/-][+]Ahead of time (background) context compaction to hide latency[/+]etraut-openai commentedon Jan 10, 2026
This feature request hasn't received any upvotes in nearly two months, so closing.