Jul 24, 2026Single source
Codex context auto-compaction loop rereads files, loses progress, and burns paid credits
AI loose in the worldAvailabilityDERIVED
Approved by person, Oct 12, 2026. How entries are approved
A long-running Codex project chat on GPT-5.6 Sol entered a context auto-compaction loop. After each 'Context automatically compacted' event, Codex retained the broad project objective but appeared to lose execution progress. It repeatedly reread the same files, reloaded the same skills or memory files, restated that it had found the exact defect, promised the next update would contain the completed change, then compacted again before completing the edit. The requested implementation was never completed, and the loop consumed roughly 10%-15% of the user's available paid Codex usage. Context was 93% full at 240,000 / 258,000 tokens when captured.
What this means for youIf you use AI coding agents on long projects, watch your usage meter, and stop a session that keeps rereading the same files or repeating itself. At work, ask whether usage caps or spending alerts are set before a long agent run.
Sources
- GitHub issue, openai/codex #35226https://github.com/openai/codex/issues/35226
Incident records from the AI Agent Incident Database by sipi.bot (https://sipi.bot/incidents/), licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).
Source data license: CC BY 4.0. Attribution to sipi.bot is required.
Covered by snapshot 45
da93f03b406f409940d0a6ef47b526607f82ebf457d98f69299b88aceede576a
This entry is record number 2402. It has not been edited since it was approved; the hash above would not match if it had. How to verify