# NousResearch/hermes-agent · Shell hook prompt blocking asyncio event loop fix

## Open now

- Nothing open on GitHub.

A bug where the shell hook approval prompt calls input() on the asyncio event loop thread causes freezes and gateway self-termination, with accompanying fixes to avoid blocking the event loop during consent prompts.

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

- #120356: \[Bug\]: shell hook approval prompt calls input() on the asyncio event loop thread — a console-bearing launcher (Windows .vbs login item) freezes the loop 105s and the gateway self-kills with exit 75

## Prior & competing PRs

- **#140984: Unattended gateway no longer freezes and exits 75 on a shell-hook consent prompt (#120356, salvage #140461)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/shell_hooks.py`, `gateway/run_startup.py`, `gateway/shutdown_watchdog.py`, `hermes_cli/main.py`, `tests/agent/test_shell_hooks_consent.py`, `tests/gateway/test_loop_liveness_watchdog.py`, `tests/hermes_cli/test_cli_startup_trim.py`, `website/docs/user-guide/features/hooks.md`
- **#120362: fix: avoid shell hook prompt on event loop**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `afb53eb3330`, `#140984`, `#120356`
- **#123425: fix(agent): bound the shell-hook consent prompt on the event loop thread**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `afb53eb3330`, `#140984`
- **#140461: fix(gateway): never prompt for shell-hook consent outside the foreground CLI (#120356)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `ea30fe31dba`, `afb53eb3330`, `#140984`

## Fix status

- Merged to main in PR #140984 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-18`.
- Subsystem: `agent`
