# NousResearch/hermes-agent · Windows gateway restart reliability and job-object fixes

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #42338: fix(gateway): use canonical _pid_exists in restart watcher; /restart …

These issues and PRs address failures in the Windows gateway /restart flow, particularly around CREATE_BREAKAWAY_FROM_JOB errors in job objects, detached watcher process handling, and related edge cases. Several fixes attempt to salvage or retry the restart watcher when process creation flags are rejected by the OS.

## TL;DR

- 6 member(s): 0 open issue(s), 2 closed issue(s), 1 open PR(s), 2 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #70262. Verify it addresses your case.
- **Recommended:** read PR #70262 (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: `partially_resolved` · deciding PR(s): `pr-70262`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.29`: 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

- #42116: fix(gateway/run): Windows detached gateway /restart fails in job objects (WinError 5)
- #49603: Windows: Feishu /restart stops gateway but detached restart fails with WinError 5

## Prior & competing PRs

- **#70205: fix(windows): hidden-console daemons — extend the parent-console flash fix to every detached spawn path**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/run.py`, `hermes_cli/_subprocess_compat.py`, `hermes_cli/gateway.py`, `hermes_cli/gateway_windows.py`, `hermes_cli/main.py`, `hermes_cli/web_server.py`, `tests/gateway/test_restart_drain.py`, `tests/hermes_cli/test_gateway_windows.py`, `tests/tools/test_windows_native_support.py`
- **#70262: fix(gateway): retry detached restart watcher without breakaway (salvage #42993)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `gateway/run.py`, `tests/tools/test_windows_native_support.py`
- **#42242: fix(gateway): retry detached Windows restart watcher without breakaway**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `0dbf639bc8`, `#42993`, `#42116`, `#70205`
- **#42338: fix(gateway): use canonical _pid_exists in restart watcher; /restart …**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `gateway/run.py`, `tests/gateway/test_restart_drain.py`

## Fix status

- Merged to main in PR #70262 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-24`.
- Subsystem: `gateway`
