# NousResearch/hermes-agent · Session persistence error messaging and recovery fixes

## Open now

- Nothing open on GitHub.

These items address misleading or uninformative error messages when session persistence fails, including surfacing the real cause of failures and improving recovery messaging. A specific case of compression-lock contention causing silent session loss is also covered.

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

- #81227: Desktop: turns aborted with misleading 'session storage could not be written' (compression-lock contention, no retry); sessions appear to vanish after disconnects

## Prior & competing PRs

- **#81613: fix: cause-aware session-persistence errors, gateway recovery message, doctor state.db stats (salvage #80693)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/conversation_loop.py`, `agent/tool_executor.py`, `agent/turn_finalizer.py`, `cron/scheduler.py`, `gateway/run.py`, `hermes_cli/doctor.py`, `hermes_state.py`, `run_agent.py`, `tests/gateway/test_normalize_empty_agent_response.py`, `tests/run_agent/test_tool_call_incremental_persistence.py`, `tests/run_agent/test_turn_completion_explainer.py`, `tests/test_state_db_stats.py`
- **#81248: fix(agent): name the real cause of session_persistence_failed**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#81613`, `#80693`

## Fix status

- Merged to main in PR #81613 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-08`.
- Subsystem: `apps/desktop`
