NousResearch/hermes-agent

PDF files misread as text by read_file tool

Cluster 43059 · agent. Data as of

3 open items. Fix attempted, not merged.

The short answer

1open issue
2open PRs
3items grouped
Known?
Yes. 3 related items grouped here, 0 issues already closed.
Fix event
No fix has been merged to main. see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
1 issue and 2 PRs.

A bug where read_file treats PDF files as plain text rather than binary, causing large raw-byte dumps that exceed context limits. The fix adds .pdf to BINARY_EXTENSIONS to prevent this behavior.

Open issues1

  • Issue#43059read_file reads PDFs as text (.pdf excluded from BINARY_EXTENSIONS; content sniff samples only first 1000 bytes = ASCII header) → ~100KB dump exceeds context → compression-reset loop

Open PRs2

  • PR#43064fix(tools): add .pdf to BINARY_EXTENSIONS to prevent read_file from dumping raw PDF bytes
  • PR#43124fix(tools): treat PDFs as binary in read_file (#43059)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.67: 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
agent
Closed issues
0
Attempts
0 PRs closed without merging

For your agent

The same facts, typed.