# NousResearch/hermes-agent · Windows exit hangs from pipe closing while reader thread blocked

## Open now

- 1 issue, 0 PRs open on GitHub.
- #142193: \[Bug\]: Windows — one-shot \`hermes chat -Q\` never exits: \`_reconcile_local_exit\` closes a pipe whose reader thread is still blocked (BufferedReader lock deadlock)

These items all concern Windows processes failing to exit, with a bug report on one-shot \`hermes chat -Q\` and two pull requests about background commands and session pipes. They appear to share a theme of closing a pipe while its reader may still be active, but the titles alone do not confirm outcomes.

## TL;DR

- 3 member(s): 1 open issue(s), 0 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 #162301. Verify it addresses your case.
- **Recommended:** read PR #162301 (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: `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

- #142193: \[Bug\]: Windows — one-shot \`hermes chat -Q\` never exits: \`_reconcile_local_exit\` closes a pipe whose reader thread is still blocked (BufferedReader lock deadlock)

## Prior & competing PRs

- **#162301: fix(tools): Windows background commands with a lingering child no longer hang on exit (salvage #114597, #142591)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `tests/tools/test_process_registry_reader_pipe_close.py`, `tools/process_registry.py`
- **#142591: fix(tools): leave a finished session's pipe to its reader (#142193)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `314dd0a745`, `#162301`

## Fix status

- Merged to main in PR #162301 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-12-01`.
- Subsystem: `agent`
- Kind: `bug` (from the open issues' GitHub type labels).
