# NousResearch/hermes-agent · Tool call handling, sanitization, and streaming fixes

## Open now

- Nothing open on GitHub.

These items address bugs and improvements around tool call behavior, including LM-Studio streaming fragmentation, repeated tool calls, pre/post-call guardrails, and preserving valid JSON in compressed tool-call arguments.

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

- #5254: \[Bug\]: Tool calls repeating when using LM-Studio

## Prior & competing PRs

- **#140485: LM Studio / Kimi / MiniMax streamed tool calls no longer shatter into broken calls (#5254, salvage #5331)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/chat_completion_helpers_tool_calls.py`, `tests/agent/test_chat_completion_helpers_tool_calls.py`
- **#5331: fix: handle LM-Studio tool call fragmentation in streaming mode**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `27edc417d75d`, `#140485`
- **#106943: fix(agent): accumulate nameless streaming tool-call deltas into one call**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `27edc417d75d`, `#140485`

## Fix status

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