# NousResearch/hermes-agent · Plugin on_session_delete hook for session deletion paths

## Open now

- Nothing open on GitHub.

The three members all concern adding an \`on_session_delete\` plugin hook that would fire across session-deletion paths, with one title also mentioning session archiving. They appear to cover a feature request and related fix or salvage work, but the titles alone do not show their status or outcome.

## 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 #140995. Verify it addresses your case.
- **Recommended:** read PR #140995 (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-140995`. 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

- #124511: \[Feature\]: Add an \`on_session_delete\` plugin hook (fire on every session-deletion path)

## Prior & competing PRs

- **#140995: Plugins hear about every session delete and archive: on_session_delete hook (#124511, salvage #124988, #132639)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `hermes_cli/hooks.py`, `hermes_cli/plugins.py`, `hermes_state_common.py`, `hermes_state_maintenance.py`, `hermes_state_portability.py`, `hermes_state_profile_repair.py`, `hermes_state_runtime.py`, `hermes_state_sessions.py`, `tests/hermes_state/test_session_delete_hook.py`, `website/docs/developer-guide/observer-hooks.md`, `website/docs/developer-guide/plugins/index.md`, `website/docs/user-guide/features/hooks.md`, `website/docs/user-guide/features/plugins.md`, `website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/plugins/index.md`, `website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/hooks.md`
- **#124988: fix(plugins): fire on_session_delete on every session-deletion path**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `627ce0355641449599ed1bef9425bb61e9020d14`, `ee3ce9a4d96`, `99495522bc5`, `#140995`

## Fix status

- Merged to main in PR #140995 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-18`.
- Subsystem: `agent`
