# NousResearch/hermes-agent · Fix parsing of JSON-stringified tool_call batch envelopes

## Open now

- Nothing open on GitHub.

These issues and pull requests all address the same bug: when a model emits a tool_call batch envelope as a JSON string rather than a parsed array, it is incorrectly rejected with a misleading error, leading to tool-call loops. The members focus on parsing that stringified envelope correctly.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #114775. Verify it addresses your case.
- **Recommended:** read PR #114775 (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-114775`. 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.40`: 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

- #114484: tool_call bridge: batch envelope emitted as JSON string by model is rejected with misleading "non-empty array" error, causing tool-call loops

## Prior & competing PRs

- **#114775: fix(tools): tool_call parses a JSON-string calls envelope and its rejections restate the valid single-entry shape (#114484, #114646, salvage #114486)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `contributors/emails/[redacted:email]`, `tests/tools/test_connector_bridge_wiring.py`, `tests/tools/test_connector_local_batches.py`, `tests/tools/test_tool_search.py`, `tests/tools/test_tool_search_multiquery.py`, `tools/connectors/dispatch.py`, `tools/tool_search.py`, `tools/tool_search_validation.py`, `website/docs/user-guide/features/tool-search.md`
- **#114486: fix(tools): parse JSON-string tool_call batch envelopes**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `91279b01f32d`, `#114775`, `#114775`, `#114484`, `#114646`, `#114486`, `#114484`, `#114646`
- **#114487: fix(tools): parse a JSON-stringified tool_call batch envelope**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#114486`, `#114486`
- **#114488: fix(tools): parse the tool_call batch envelope emitted as a JSON string**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `91279b01f32d`, `#114775`, `#114775`, `#114484`, `#114646`, `#114486`, `#114484`, `#114646`

## Fix status

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