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

The report frames this as a convergence failure caused by repeated compaction rather than total amnesia.

Original post →

More from coding & agent

coding & agent channel →