mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Image resize notices describe the history item immediately before them, so remote compaction must not preserve or discard them independently of that item. ## What changed - Group recognized `image_resize_notice` developer messages with their source history items when filtering compacted history. - Account for each group together when trimming or truncating history to a token budget, preserving the notice only when its source is retained. ## Testing - Extend the remote compaction v2 follow-up test to verify that a retained user image keeps its resize notice, while notices for discarded items and unrecognized developer notices are omitted. GitOrigin-RevId: 82bb70a46eb68b07b4601e7fb345921d0789f442