# NousResearch/hermes-agent · Distinguishing clean EOF from network drop in streams

## Open now

- Nothing open on GitHub.

These items address a conflation bug where a clean EOF with no finish_reason is incorrectly labeled the same as a transport/network drop. The work involves separating diagnostics, labels, and handling for these two distinct stream-ending conditions.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #121639. Verify it addresses your case.
- **Recommended:** read PR #121639 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-121639`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member 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.

## Closed / duplicate issues

- #102766: \[Bug\]: "Response truncated — stream ended before completion" conflates two distinct failure modes; type-2 (clean EOF, no finish_reason) needs its own diagnostics and is mislabeled as a network drop

## Prior & competing PRs

- **#121639: fix(agent): honest truncation/stream-drop labels (clean EOF vs network, finish_reason gate, 1-indexed attempts)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/chat_completion_helpers.py`, `agent/stream_diag.py`, `agent/turn_failure_copy.py`, `agent/turn_tool_validation.py`, `agent/turn_truncation.py`, `contributors/emails/164521089+rainbowgits@users.noreply.github.com`, `tests/agent/test_partial_stream_finish_reason.py`, `tests/agent/test_run_agent.py`, `tests/agent/test_stream_drop_logging.py`
- **#102772: fix(stream): distinguish clean-EOF no-finish_reason from a transport drop**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `1f041552d7`, `#121639`, `#102766`

## Fix status

- Merged to main in PR #121639 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-26`.
