0dce46feb7
Widen #90001's compaction-time strip to cover the gaps #89965 identified, applied at compaction only per the cache ruling (request-time eviction changes the per-call prefix and breaks prompt caching; compaction is the one sanctioned cache break): - Rule 1b: the opening attachment (anchor == 0) ages out once a newer tool-result image supersedes it. The reported session opened with a ~200KB poster that previously survived every compaction. The row keeps a non-empty text placeholder, so the zero-user-turn guard (#58753) and role alternation are untouched. - Native {_multimodal: True, content: [...]} dict envelopes now both anchor (newest is kept) and strip (older collapse to their text_summary via _strip_images_from_tool_msg, which also drops the stale api_content sidecar per #97125's drop_stale_api_content). - All three wire shapes (Chat Completions image_url, Responses input_image, Anthropic-native image) were already matched by _IMAGE_PART_TYPES; tests now pin each shape explicitly, plus determinism (double-run is a no-op returning the same object). Refs #89938, #89965