Repeated context compaction in Codex long tasks degrades the execution frontier
Leviann · ghdev · 2026-07-19
This Codex Desktop bug report says repeated automatic context compaction did not erase the task, but it steadily damaged the agent's execution frontier.
Core claim
The agent still remembered specific files and findings after compaction, but it lost the exact state of what was already done, what remained, and what the next step should be. Over time, the task stopped converging: the model kept rephrasing the endgame, reopened already-covered work, and never reached the promised terminal state.
Important correction
The author notes that an earlier version of the report overstated the evidence by blaming Ultra reasoning and claiming only the base prompt survived. The corrected version limits itself to the observed rollout.
Environment and evidence
- Codex Desktop on Windows, connected to a remote Ubuntu workspace
- model: gpt-5.6-sol
- reasoning effort switched from high to ultra
- reported context window: 258,400 tokens
- 24 compaction events were observed over about 14 hours
- near each compaction, input tokens were roughly 196k–218k
The report frames this as a convergence failure caused by repeated compaction rather than total amnesia.
More from coding & agent
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27
- Agentic Data Science in Practice: Agents Write Code but Answer Wrong Questions — hugobowne · 2026-07-27
- A VS Code extension adds Markdown-style highlighting to Alchemy string templates — samgoodwin89 · 2026-07-27
- Claude’s Stripe MCP connector is being called unusable after repeated disconnects — evielync · 2026-07-27