# NousResearch/hermes-agent · Session prune incorrectly deletes compressed chat history

## Open now

- Nothing open on GitHub.

A bug where the retention pruning process removes the compressed-away beginning of an active conversation that should be preserved. The members include a bug report and corresponding fix attempts addressing this behavior.

## TL;DR

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

- #123883: \[Bug\]: retention prune deletes the compressed-away start of a conversation that is still in use

## Prior & competing PRs

- **#124199: fix(sessions): prune keeps the compressed-away start of a chat still in use**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `hermes_cli/sessions_cmd.py`, `hermes_cli/web_routers/sessions.py`, `hermes_state_common.py`, `hermes_state_maintenance.py`, `hermes_state_sessions.py`, `tests/hermes_cli/test_sessions_delete.py`, `tests/hermes_state/test_prune_activity_recency.py`, `website/docs/user-guide/sessions.md`, `website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md`
- **#123884: fix(sessions): prune keeps the compressed-away start of a chat still in use**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#124199`

## Fix status

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