# NousResearch/hermes-agent · Bounded graceful shutdown timeout for SIGTERM handling

## Open now

- Nothing open on GitHub.

These issues and pull requests address a problem where the serve backend process hangs or becomes orphaned when receiving SIGTERM, due to an unbounded graceful shutdown in uvicorn. The proposed fix adds a timeout to the graceful shutdown path so a single SIGTERM can reliably terminate the backend.

## TL;DR

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

- #76244: hermes serve: backend hangs on SIGTERM, orphans on desktop quit (unbounded uvicorn graceful shutdown)

## Prior & competing PRs

- **#128336: fix(cli): bounded graceful shutdown ends a SIGTERM-orphaned serve backend (#76244)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `hermes_cli/web_server.py`, `tests/hermes_cli/test_web_server_ws_ping.py`
- **#58028: fix(dashboard): bound graceful shutdown**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `40e4af42b8`, `#128336`, `#76244`
- **#76265: fix(cli/web_server): add bounded graceful-shutdown timeout to prevent SIGTERM orphans**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `4cbb68d4c2b2`, `#76244`, `#76265`, `#76265`, `#76265`, `#76265`, `#1`, `#1`, `#15803`, `#14532`, `#6`, `#1`, `#9`, `#374151`, `#4338`, `#76244`, `#76265`
- **#105319: fix(cli): bound serve graceful shutdown so a single SIGTERM can't orphan the backend**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#128336`
- **#127953: hermes serve exits within ~3 s of one SIGTERM instead of hanging on an in-flight request (#76244, salvage #105319)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `40e4af42b8`, `#128336`, `#105319`

## Fix status

- Merged to main in PR #128336 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-29`.
- Subsystem: `dashboard`
