# NousResearch/hermes-agent · Gateway: interrupt runs when session slot evicted

## Open now

- Nothing open on GitHub.

These issues and pull requests address gateway behavior around in-flight runs whose session turn slots are evicted or reaped, ensuring such runs are properly interrupted. A related concern involves a one-shot model override surviving a /stop command correctly.

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

- #106963: gateway: evicting a reaped session does not interrupt the in-flight run (51 calls / 7.9M tokens after its result was dropped)

## Prior & competing PRs

- **#107979: fix(gateway): a run whose session slot is evicted is interrupted, and a one-shot model override survives /stop correctly (#106963, salvage #107013)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `gateway/run.py`, `gateway/run_agent_cache.py`, `gateway/run_inbound.py`, `gateway/run_turn.py`, `gateway/session_state.py`, `gateway/slash_commands_model.py`, `gateway/turn_lease.py`, `tests/gateway/test_gateway_command_dispatch_minimal.py`, `tests/gateway/test_moa_one_shot_restore.py`, `tests/gateway/test_model_switch_persistence.py`, `tests/gateway/test_reaped_eviction_interrupts_run.py`, `tests/gateway/test_reaped_session_recovery.py`, `tests/hermes_cli/test_pre_command_hook.py`
- **#106964: fix(gateway): interrupt in-flight run on reaped-session eviction**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#106963`, `#107013`, `#106964`, `#106966`, `#107013`, `#107013`, `#106964`
- **#106966: fix(gateway): interrupt the run when its session's turn slot is evicted**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `a4fe4806fc9ba5b6449219c5c0e87169e2f6a304`, `8e85b276f1dba5a92f74125127f5dc7841bf24a8`, `#106963`, `#44212`, `#44222`, `#106964`, `#105918`, `#44212`, `#106964`, `#106963`, `#106966`, `#105918`, `#44212`, `#44222`
- **#107013: fix(gateway): interrupt evicted in-flight runs**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `0240afd336aed805cc04eff4291a26bd634b27a1`, `cdf4c765213d7f4f7562f642e2b2df00d42c8ffd`, `77e55b4d1f1d3cf2df1e8143ccacf7527b5f7cf0`, `0240afd336aed805cc04eff4291a26bd634b27a1`, `0240afd336aed805cc04eff4291a26bd634b27a1`, `0240afd336aed805cc04eff4291a26bd634b27a1`, `0240afd336aed805cc04eff4291a26bd634b27a1`, `0240afd336aed805cc04eff4291a26bd634b27a1`, `0240afd336aed805cc04eff4291a26bd634b27a1`, `cdf4c765213d7f4f7562f642e2b2df00d42c8ffd`, `cdf4c765213d7f4f7562f642e2b2df00d42c8ffd`, `0240afd336aed805cc04eff4291a26bd634b27a1`, `539381d7291001a95e5f5ff3caa5b16cb79723e8`, `ae0f4fa33f40a07ff35dcbfeb720a16d8417bd1f`, `09fe65d73dc56fa79e70a5040402f70a3c791282`, `#107013`, `#28686`, `#106963`, `#106966`, `#106964`, `#106966`, `#106966`, `#28686`, `#99183`

## Fix status

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