NousResearch/hermes-agent

read_file phantom empty trailing line for newline-terminated files

Cluster 49451 · agent. Data as of

Nothing open on GitHub. Fix merged in #107798 on 13 Sep 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #107798. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
Nothing open on GitHub.

One bug report and several pull requests concern read_file showing an extra empty last line when a file ends in a newline. The pull request titles describe changes to stop rendering that line, and one also mentions counting unterminated final lines.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #107798 fix(tools): read_file counts unterminated final lines and stops rendering a phantom trailing line (salvage #106888, #49453)

    merged to main

    files: tests/tools/test_file_operations.py, tests/tools/test_file_operations_edge_cases.py, tests/tools/test_file_ops_single_roundtrip.py, tools/file_operations.py

2 PRs closed without merging

From the close comments: duplicate 1 · merged via another change 1

  • #49453 fix(tools): stop read_file rendering a phantom empty line for newline-terminated files · merged via another change → 6f62aff, #107798
  • #49522 fix(tools): remove phantom empty last line from read_file (#49451) · duplicate → #49453, #49451
Closed issues · 1
  • Closed#49451[Bug]: read_file shows a phantom empty last line for every file that ends in a newline
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.50: 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
Merged PRs
#107798
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
13 Sep 2026

For your agent

The same facts, typed.