# NousResearch/hermes-agent · Tool call ID deduplication bug and fixes in agent

## Open now

- Nothing open on GitHub.

A bug where tool results were dropped when a server reused a tool_call_id, causing the agent to stop mid-task. Multiple fix attempts scope the deduplication logic to per-assistant-message to preserve all tool results.

## 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 #88324. Verify it addresses your case.
- **Recommended:** read PR #88324 (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-88324`. 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

- #70724: \[Bug\]: tool results dropped when the server reuses one tool_call_id (llama.cpp) — agent stops mid-task

## Prior & competing PRs

- **#88324: fix(agent): keep tool results when a server reuses one tool_call_id (#70724)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_runtime_helpers.py`, `tests/run_agent/test_message_sequence_repair.py`
- **#70734: fix(agent): keep tool results when a server reuses one tool_call_id**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `df68cc1c1ab6`, `#88324`
- **#70843: fix(agent): scope tool_call_id dedup to per-assistant-message (#70724, #70745)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `df68cc1c1ab6`, `#70724`, `#88324`, `#70734`, `#58327`, `#70745`

## Fix status

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