# NousResearch/hermes-agent · Gateway side-agent (/bg, /btw) handling during restarts and shutdown

## Open now

- Nothing open on GitHub.

Two of the three members concern /bg and related side agents in the gateway: one reports that a running /bg task is lost on gateway restart or \`hermes update\`, and another proposes counting side agents (/bg, /btw, preview-restart) as owner work. The third is a broad gateway fix bundle covering several other areas (ingress, relaunch, idle exit, Kanban ACK, log locking) that only partly overlaps with side-agent drain.

## TL;DR

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

- #140375: A running /bg task is killed by a gateway restart or \`hermes update\`, and its result never arrives

## Prior & competing PRs

- **#140967: fix(gateway): parked-profile ingress, downgrade relaunch, side-agent drain, idle exit, worker birth, Kanban ACK wait, log lock order (package 10 lane 1)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/managed_worker.py`, `agent/side_question.py`, `gateway/AGENTS.md`, `gateway/parked_route_refusal.py`, `gateway/platforms/api_server_response_admissions.py`, `gateway/platforms/shared_ingress.py`, `gateway/platforms/webhook.py`, `gateway/platforms/webhook_ingress.py`, `gateway/relay/inbound_admission.py`, `gateway/run_idle_exit.py`, `gateway/run_profile_reconcile.py`, `gateway/run_runtime.py`, `gateway/run_shutdown.py`, `gateway/runtime_downgrade_exit.py`, `gateway/session_api_turn.py`, `gateway/session_authorities.py`, `gateway/session_ingress_context.py`, `gateway/session_kanban.py`, `gateway/session_managed_worker.py`, `gateway/session_runtime_workers.py` (+21 more)
- **#140378: fix(gateway): count /bg, /btw and preview-restart side agents as owner work**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `25eb0bb868f`, `#140967`

## Fix status

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