mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
## Why An exhausted carryover budget could drop explicitly pinned items, and an oversized pin could crowd out ordinary user messages during local compaction. ## What changed Preserve eligible pins in full and in their original order for the current thread, child threads, or both, according to their retention policy. Apply the carryover budget to the remaining history, including items retained by features without an explicit pin. ## Testing Add regression tests for destination-specific pins at zero budget and for keeping an ordinary user message alongside an oversized pin during local compaction. GitOrigin-RevId: fc8529bcc254d8e7a4a010337ce760e94daa4bef