# NousResearch/hermes-agent · Windows stdout pipe drain hang fixes

## Open now

- Nothing open on GitHub.

Multiple attempts to address a Windows-specific hang where blocking reads on stdout pipes stall when grandchild processes hold the pipe open. The work explores non-blocking drain approaches using PeekNamedPipe and related techniques.

## TL;DR

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

- #105865: Windows: terminal/file tool "local environment" hangs for minutes (blocking os.read stdout drain, no timeout)

## Prior & competing PRs

- **#115671: fix(terminal): Windows commands return promptly when a grandchild holds the stdout pipe (#105865, #67362, salvage #105981)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `tests/tools/test_drain_fd_windows.py`, `tools/environments/base_output.py`
- **#105893: fix(tools): non-blocking Windows stdout drain stops after child exit (#105865)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#105981`
- **#105981: fix(terminal): prevent Windows stdout drain hangs**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#105893`, `#105893`, `#105893`
- **#109096: fix(tools): use PeekNamedPipe to drain stdout on Windows to prevent os.read hang (fixes #105865)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#105981`, `#105865`

## Fix status

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