# NousResearch/hermes-agent · Tool call ID duplication after context compression on strict providers

## Open now

- Nothing open on GitHub.

These members center on one theme: context compression or compaction can leave the tool message chain invalid, with an error about 'tool' messages needing a preceding 'tool_calls' message, or with duplicate tool_call_ids on strict providers. One is a bug report and the others are pull requests proposing deduplication of tool_call_ids, with two having identical titles.

## 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.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-58350`. 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

- #58327: \[Bug\]: Context compression breaks tool message chain, causing "role 'tool' must be a response to a preceding message with 'tool_calls'" on strict providers

## Prior & competing PRs

- **#58350: fix(agent): deduplicate tool_call_id across pre-API sanitizers (#58327)**. merged to main · fix tier `suggested`
  - maintainer direction: category `merged`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#58362: fix(agent): dedup duplicate tool_call_id after compaction (#58327)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#58350`, `#58327`
- **#60270: fix(compression): dedup duplicate tool_call_ids to prevent HTTP 400 on strict providers**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#60398: fix(compression): dedup duplicate tool_call_ids to prevent HTTP 400 on strict providers**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `dba585c1794e0c5dc4409c6c60996046e2005063`, `#58350`, `#58327`

## Fix status

- No merged fix on record.
