Codex remote compaction v2 retains raw media, causing repeated auto-compaction

LeonSGP43 · ghdev · 2026-08-16

A user reports that in long Codex Desktop sessions, remote compaction v2 retains raw image and audio payloads, causing high context usage and repeated auto-compaction. The root cause is that compactremotev2.rs assigns zero text-token cost to InputImage and InputAudio while preserving raw items. The proposed fix is to replace media items with text markers before truncation and add regression tests.

Original post →

More from coding & agent

coding & agent channel →