# NousResearch/hermes-agent · Fix Windows session lock contention and POSIX probe

## Open now

- Nothing open on GitHub.

These issues and fixes address a Windows-specific bug where a POSIX zombie probe inside the session-registry lock caused ~80ms hold times and lock starvation for pollers with many leases. The fixes skip the POSIX probe on Windows in relevant code paths and adjust lock handling to prevent starvation.

## TL;DR

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

- #115578: \[Bug\]: Windows active-session registry lock is held ~80ms (POSIX zombie probe inside lock) and LK_LOCK is unfair — every poller starves at >=7 leases

## Prior & competing PRs

- **#116998: fix(sessions): Windows pollers no longer starve on the session-registry lock (#115578, salvage #115591)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/hermes-agent@localhost`, `gateway/status.py`, `hermes_cli/active_sessions.py`, `tests/gateway/test_status.py`, `tests/hermes_cli/test_active_sessions.py`
- **#115585: fix(gateway): skip the POSIX zombie status probe on Windows in _pid_exists**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `#115591`, `#42126`, `#108955`, `#52193`
- **#115591: fix(sessions): skip POSIX zombie probe on Windows; prune snapshot after lock release**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `3721657a76d7`, `#116998`, `#115578`, `#115591`

## Fix status

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