NousResearch/hermes-agent

Handling unparseable JSON strings in tool argument coercion

Cluster 132942 · agent · Bug. Data as of

3 open items. Fix attempted, not merged.

The short answer

1open issue
2open PRs
3items grouped
Known?
Yes. 3 related items grouped here, 0 issues already closed.
Fix event
No fix has been merged to main. See the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.

These members concern how coerce_tool_args treats tool arguments that are strings shaped like JSON containers but cannot be parsed. One describes the todo_list case where the raw string is wrapped and the TodoStore list is replaced by a placeholder; the others refer to leaving such strings unwrapped and giving the model a clearer error about broken JSON.

Open issues1

  • Issue#132942todo_list: coerce_tool_args wraps an unparseable todos string as [raw]; TodoStore silently replaces the whole list with a "(invalid item)" placeholder

Open PRs2

  • PR#132950fix(tools): keep unparseable container-shaped strings unwrapped in coerce_tool_args
  • PR#161359Tools tell the model its JSON is broken instead of a misleading shape error (#132942, salvage #132950)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.67: the share of item 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.

For your agent

The same facts, typed.