# NousResearch/hermes-agent · async pre-dispatch gateway hooks awaited correctly

## Open now

- Nothing open on GitHub.

These issues and fixes address a bug where async pre_gateway_dispatch callbacks were not properly awaited on the event loop, causing them to run through a thread bridge and block the gateway. Related policy work covers hook failure modes and precedence rules.

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

- #110241: \[Bug\]: pre_gateway_dispatch async callbacks run through the thread bridge and block the gateway event loop

## Prior & competing PRs

- **#118844: Plugin hook policy: hung or raising guards fail closed without wedging, block outranks approve, shell approve reaches the gate, async pre_gateway_dispatch awaited (#105223 #109624 #87420 #92553 #105827 #110241)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/shell_hooks.py`, `gateway/run_inbound.py`, `hermes_cli/lifecycle.py`, `hermes_cli/middleware.py`, `hermes_cli/plugins.py`, `hermes_cli/plugins_dispatch.py`, `tests/agent/test_shell_hooks.py`, `tests/gateway/test_bot_loop_guard.py`, `tests/gateway/test_pre_gateway_dispatch.py`, `tests/hermes_cli/test_plugins.py`, `website/docs/user-guide/features/hooks.md`
- **#110253: fix(gateway): await async pre-dispatch hooks**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `75e9567ca7`, `#118844`
- **#110265: fix(gateway): await async pre_gateway_dispatch callbacks on the event loop**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `75e9567ca7`, `#118844`

## Fix status

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