#16597: media: skip binary application attachments in file extraction
stale
size: S
Cluster:
Media Handling Improvements
## Summary
- treat binary application MIME families (including `application/vnd.*`, archive-like `application/x-*`, and `application/octet-stream`) as non-inlineable in media understanding
- keep text-like MIME handling intact for explicit text extensions while preventing Office/archive blobs from entering prompt context
- add regression coverage for vnd, x-archive, and octet-stream payloads
## Issue
- Fixes #16513
Most Similar PRs
#5588: fix(media): skip binary audio in file extraction to prevent false U...
by NSEvent · 2026-01-31
65.4%
#17286: fix(media): PDF attachments embedded as raw binary instead of extra...
by yinghaosang · 2026-02-15
61.0%
#7454: fix: skip UTF-16 heuristic for audio/video/image MIME types (#7444)
by gavinbmoore · 2026-02-02
59.6%
#4235: fix(media): skip audio in extractFileBlocks + hasBinaryAudioMagic d...
by null-runner · 2026-01-29
58.1%
#11990: Fix media understanding file path suppression + image tool bare-ID ...
by robertbergman2 · 2026-02-08
56.7%
#23262: fix(media): prevent PDF binary injection by detecting magic bytes
by SidQin-cyber · 2026-02-22
56.5%
#11160: Media: add missing audio MIME-to-extension mappings (aac, flac, opu...
by lailoo · 2026-02-07
55.6%
#5401: fix(media-understanding): detect audio binary by magic bytes to pre...
by RiadJamal07 · 2026-01-31
55.0%
#14794: fix: parse inline MEDIA: tokens in agent replies
by explainanalyze · 2026-02-12
55.0%
#8048: Media: add regression test for audio text blocks (#7970)
by Abhishek-B-R · 2026-02-03
54.6%