83bba799e2
The model sometimes echoes a previous MEDIA:path tag or bare file path in a later response. Previously both streaming delivery and non-streaming delivery would re-send those files, causing duplicate documents/images on later turns. Changes: - _collect_history_media_paths now also scans assistant messages for MEDIA: tags, not just tool results. - _deliver_media_from_response accepts pre-computed history_media_paths and filters extracted media/local files. - BasePlatformAdapter gains _history_media_paths_for_session for non-streaming dedup.