# NousResearch/hermes-agent · Update locking and race conditions in desktop pipeline

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #127021: fix(update): keep the update lock while its verified owner is alive

These items address race conditions and locking gaps in the desktop update process, including issues where concurrent processes, interrupted updates, or stacked completions can corrupt build state or produce a persistent restart banner. The fixes focus on maintaining update locks correctly and resolving timing issues in the freshness pipeline.

## TL;DR

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

- #123376: \`hermes update\` races with launchd-restarted gateways finishing the "interrupted" source update → mixed desktop build, permanent "Restart to finish update" banner

## Prior & competing PRs

- **#127237: fix(build,update): OS metadata, stamp-clock races and stacked completions break the desktop freshness pipeline**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/scripts/bundle-electron-main.mjs`, `hermes_cli/source_completion.py`, `scripts/build/README.md`, `scripts/build/desktop.mjs`, `scripts/build/freshness.mjs`, `scripts/build/frontend-common.mjs`, `tests-js/desktop-builder.test.mjs`, `tests-js/freshness-metadata.test.mjs`, `tests-js/frontend-common.test.mjs`, `tests-js/product-builders.test.mjs`, `tests/hermes_cli/test_source_completion_stamp.py`, `tests/hermes_cli/test_update_completion_process.py`
- **#127021: fix(update): keep the update lock while its verified owner is alive**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `apps/bootstrap-installer/src-tauri/src/paths.rs`, `apps/bootstrap-installer/src-tauri/src/update.rs`, `apps/desktop/electron/update-marker.test.ts`, `apps/desktop/electron/update-marker.ts`, `hermes_cli/update_lock.py`, `hermes_cli/update_stage.py`, `tests/hermes_cli/test_update_lock.py`

## Fix status

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