NousResearch/hermes-agent

Image MIME type detection via magic byte sniffing

Cluster 19195 · gateway. Data as of

Nothing open on GitHub. Fix attempted, not merged.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 2 issues already closed.
Fix event
No fix has been merged to main. 2 PRs closed without merging; see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
Nothing open on GitHub.

A cluster of bugs and fixes centered on incorrect media_type values being sent to Anthropic's vision API, caused by misleading file extensions or Discord's image caching. Fixes involve sniffing actual file magic bytes to determine true MIME type rather than trusting suffixes.

Open issues0

No open issues.

Open PRs0

No open pull requests.

2 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1

  • #19196 fix(image-routing): sniff magic bytes for image MIME, ignore misleading suffix · merged via another change → 101a778, #21049
  • #21345 fix(discord): sniff image magic bytes so Anthropic vision accepts media_type · done elsewhere → 5cf7032
Closed issues · 2
  • Closed#19195[Bug]: Discord-cached PNG-as-.webp images cause HTTP 400 from Anthropic (media_type mismatch)
  • Closed#21049[Bug]: Regression in #16506: Anthropic 400 invalid_request_error on Discord image attachments — media_type mismatched with actual bytes
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.39: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means 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

At a glance

Subsystem
gateway
Closed issues
2
Attempts
2 PRs closed without merging

For your agent

The same facts, typed.