# NousResearch/hermes-agent · Desktop self-update state.db backup and file-lock fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #91229: Windows: desktop self-update frequently fails — running hermes.exe locked (os error 32); needs staged update or self-shutdown before replace
- PR #91298: fix(desktop): reclaim pre-update state.db backups even when the backup fails
- PR #127276: fix(update): reclaim emergency state.db backups even when the snapshot fails (#91229)

These items address issues with reclaiming state.db backups during update errors and a Windows-specific problem where self-update encounters errors because a running executable cannot be replaced while locked (\`os error 32\`), requiring a staged update or self-shutdown before replacement.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 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: `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.

## Open related issues

- #91229: Windows: desktop self-update frequently fails — running hermes.exe locked (os error 32); needs staged update or self-shutdown before replace

## Prior & competing PRs

- **#91298: fix(desktop): reclaim pre-update state.db backups even when the backup fails**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#91636`
  - files: `apps/desktop/electron/emergency-backup-retention.test.ts`, `apps/desktop/electron/emergency-backup-retention.ts`, `apps/desktop/electron/main.ts`
- **#127276: fix(update): reclaim emergency state.db backups even when the snapshot fails (#91229)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `0fcfa2b895bf`, `#91229`
  - files: `hermes_cli/backup_sqlite.py`, `tests/hermes_cli/test_emergency_backup_retention.py`

## Fix status

- No merged fix on record.
- Subsystem: `apps/desktop`
