# NousResearch/hermes-agent · Multi-profile gateway handoff routing bug

## Open now

- Nothing open on GitHub.

A bug report and associated fix attempts addressing /handoff on multi-profile gateway installs selecting the wrong state database, session key, and bot. The cluster covers the problem report and salvage/fix pull requests for the same issue.

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

- #91216: \[Bug\]: /handoff is broken on multi-profile gateways — wrong state.db, wrong session key, delivery through the wrong bot

## Prior & competing PRs

- **#97338: fix(gateway): /handoff works on multi-profile installs (salvage #91217, fixes #91216)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/run.py`, `hermes_state.py`, `tests/gateway/test_handoff_secondary_profile_adapter.py`, `tests/gateway/test_handoff_watcher_multiprofile.py`, `tests/gateway/test_handoff_watcher_resilience.py`
- **#91217: fix(gateway): /handoff on multi-profile installs — wrong state.db, wrong session key, wrong bot**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `7d1c9aeab739842fa42112c95d086a9897f2d513`, `#97338`

## Fix status

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