# NousResearch/hermes-agent · Fix update/restart to use running install path

## Open now

- Nothing open on GitHub.

These items address a concern that the gateway's update and restart commands resolve the executable via PATH (shutil.which) rather than the currently running installation, with a proposed fix to derive the path from the running process instead.

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

- #111569: \[Security\] Windows /update command resolves hermes via shutil.which → PATH hijack

## Prior & competing PRs

- **#112215: fix(gateway): /update and restart relaunch the running install instead of whatever 'hermes' is on PATH (#111569, salvage #111574)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cron/scheduler_delivery.py`, `gateway/run.py`, `hermes_cli/kanban_db_dispatch.py`, `tests/cron/test_bot_chat_cli_home.py`, `tests/cron/test_bot_chat_pending.py`, `tests/cron/test_bot_chat_pending_identity.py`, `tests/cron/test_cron_bot_chat_delivery.py`, `tests/gateway/test_update_command.py`, `tests/hermes_cli/test_kanban_db.py`
- **#111574: fix(gateway): resolve the update/restart argv from the running install, not PATH**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `173ccfe2dd`, `#112215`

## Fix status

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