# NousResearch/hermes-agent · Stream drop attempt counter off-by-one bug

## Open now

- Nothing open on GitHub.

The attempt number logged when a stream drop occurs is overstated by one, showing 'attempt 2/3' on the first execution. A fix aligns the logged counter with the actual execution attempt.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 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.50`: 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

- #90215: Stream drop log lines overstate attempt number by one (drop on first execution logs "attempt 2/3")

## 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`
- **#90254: fix(agent): align stream drop attempt counter with execution attempt (Closes #90215)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `1f041552d7`, `#121639`, `#90215`
- **#91157: Fix stream drop attempt numbering**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#90254`

## Fix status

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