cea4c3362d
Salvaged from PR #73982 by Alexander Russell (@AlexxRussell) — the collector half only. _collect_history_media_paths used only _TOOL_MEDIA_RE, which misses quoted and spaced paths that the delivery pipeline's extract_media grammar accepts; run text content through the same extractor so the surviving dedup consumers (auto-append lane and bare-path filter) see every path that could actually have been delivered. The PR's other halves (post-stream dedup snapshot plumbing, canonical path comparison in _deliver_media_from_response, queued-followup snapshot union) are moot after #74495 removed the post-stream history filter entirely.