Image attachment routing and format validation fixes
NousResearch/hermes-agent · cluster 25935 · agent
Data as of
Nothing open on GitHub. Fix merged in #53923. Check it covers your case.
The short answer
- Known?
- Yes. 10 related items grouped here, 3 issues already closed.
- Fix event
- A fix was merged to main in PR #53923. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
partially resolved, deciding PRs #53923, #115811. That is separate from the fix event. - Still open
- Nothing open on GitHub.
Multiple fixes addressing incorrect routing of non-image attachments as images in Discord and Telegram gateways, plus validation and transcoding of image formats before sending to vision/responses APIs. Includes magic-byte MIME sniffing and handling of unsupported image formats.
Open issues0
Open PRs0
Fixes on record
-
#53923 fix(gateway): classify mixed attachments per-attachment + transcode uncommon image formats
files:
agent/image_routing.py,gateway/run.py,scripts/release.py,tests/agent/test_image_routing.py,tests/gateway/test_mixed_attachment_routing.py -
#115811 fix(codex): an unsupported inline image (SVG) no longer 400s the whole Responses request or wedges the session (#29711, salvage #47299)
files:
agent/anthropic_message_convert.py,agent/codex_responses_adapter.py,tests/agent/test_anthropic_adapter.py,tests/agent/test_codex_responses_adapter.py,tools/vision_tools_image_prep.py,website/docs/user-guide/features/vision.md
5 PRs closed without merging
From the close comments: merged via another change 2 · done elsewhere 1 · other 2
-
#25936 fix(gateway,image-routing): stop cross-routing docs as images + transcode uncommon formats · merged via another change →
#53923 -
#26409 fix(gateway): keep Discord docs out of photo vision routing · merged via another change →
#53923 - #29752 fix(codex-responses): drop mismatched data:image input parts (#29711) · done elsewhere
-
#29848 fix: validate magic bytes on data:image URLs before sending to Vision providers (issue #29711) · other →
505bc27 - #47299 fix: downgrade unsupported Codex image data URLs · other
Closed issues · 3
- Closed#25935Discord image attachments fail with HTTP 400 'Could not process image' when mixed with documents, or when format isn't PNG/JPEG/GIF/WEBP
- Closed#29711Discord mixed attachments can send non-image data URLs as input_image, causing Responses 400 invalid image
- Closed#50793Discord gateway routes non-image attachments as images and lacks graceful large-video fallback
How this cluster was grouped
-
Link evidence (
partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text. - Members outside that structural core may belong to a different underlying problem.
-
Pairwise link density
0.18: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the Lab