# NousResearch/hermes-agent · Fix stale restart guard replay bug across adapters

## Open now

- 1 issue, 1 PR open on GitHub.
- #121325: \[Bug\]: Replayed /restart on Discord/Slack restarts the gateway again (stale-restart guard only works with Telegram update ids)
- PR #125698: fix(gateway): stale /restart guard matches message id for adapters without update ids

A bug caused replayed /restart commands on Discord and Slack to incorrectly trigger another gateway restart, because the stale-restart guard relied on Telegram-style update IDs not present in other adapters. These changes deduplicate restart redeliveries and fix the guard to match by message ID for adapters lacking update IDs.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 2 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. 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.

## Open related issues

- #121325: \[Bug\]: Replayed /restart on Discord/Slack restarts the gateway again (stale-restart guard only works with Telegram update ids)

## Prior & competing PRs

- **#121335: Fix restart replay guard for Discord and Slack**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#121325`, `#125698`, `#125696`, `#125736`
- **#125698: fix(gateway): stale /restart guard matches message id for adapters without update ids**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#125696`, `#121325`, `#125736`, `#125698`
  - files: `gateway/run_busy.py`, `gateway/slash_commands.py`, `tests/e2e/core/platforms/test_discord_contract.py`, `tests/e2e/core/platforms/test_slack_contract.py`, `tests/gateway/test_restart_redelivery_dedup.py`
- **#125736: fix(gateway): dedupe native slash restart redeliveries**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `3398646d3e27a6d5416dee5cc4c8adeef5cb658f`, `#125696`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
