# NousResearch/hermes-agent · Session history ordering and identity during pruning

## Open now

- Nothing open on GitHub.

These items address bugs where pruning and compaction of session history caused tool-bearing messages to appear duplicated or reordered, and where display identity was incorrectly tied to payload rather than call ID.

## TL;DR

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

- #117750: \[Bug\] Pruning carried-forward tool payloads duplicates and reorders display history

## Prior & competing PRs

- **#132131: Pruned tool results no longer reappear after later answers (#117750, salvage #131494)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `hermes_state_identity.py`, `hermes_state_messages.py`, `tests/hermes_state/test_display_dedupe_pruned_tool_payload.py`
- **#117766: fix(sessions): keep pruned history in its original display order**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `73da8e6b1e`, `#132131`
- **#117770: fix(state): tool-bearing display identity follows the call id, not the payload**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `73da8e6b1e`, `#132131`
- **#117824: fix(sessions): keep display identity across prune-shaped compaction carries**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `73da8e6b1e`, `#132131`, `#117766`
- **#131494: fix(state): key display identity of tool rows on stable tool identity, not payload bytes (#117750)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `73da8e6b1e`, `f50b61562f`, `#132131`

## Fix status

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