# NousResearch/hermes-agent · Fix session RPC routing by connection ownership

## Open now

- Nothing open on GitHub.

Multiple fixes addressing how session-scoped RPCs are routed to the correct owning connection rather than by profile name alone. Covers edge cases including same-named profiles, multi-gateway scenarios, and bot-mode second prompts.

## TL;DR

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

- #94811: fix(desktop): session-scoped RPCs collapse onto the primary connection when two connections share a profile name (4001 session not found from the 2nd prompt)

## Prior & competing PRs

- **#95407: fix(desktop): session ownership is durable across multi-gateway — rows keep their exact owner (wave-2 phase A, tracker #94724)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/electron/connection-registry.test.ts`, `apps/desktop/electron/connection-registry.ts`, `apps/desktop/electron/main.ts`, `apps/desktop/src/api/sessions.test.ts`, `apps/desktop/src/api/sessions.ts`, `apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts`, `apps/desktop/src/app/contrib/session-rpc-dispatcher.test.ts`, `apps/desktop/src/app/contrib/session-rpc-dispatcher.ts`, `apps/desktop/src/app/contrib/wiring-routing.test.ts`, `apps/desktop/src/app/contrib/wiring-routing.ts`, `apps/desktop/src/app/contrib/wiring.tsx`, `apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts`, `apps/desktop/src/app/session/hooks/profile-rail-fresh-chat-owner.test.tsx`, `apps/desktop/src/app/session/hooks/use-prompt-actions/slash.ts`, `apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts`, `apps/desktop/src/app/session/hooks/use-session-actions.test.tsx`, `apps/desktop/src/app/session/hooks/use-session-actions/index.ts`, `apps/desktop/src/app/session/hooks/use-session-actions/utils.ts`, `apps/desktop/src/lib/session-owner-stamp.ts`, `apps/desktop/src/plugins/accent/plugin.js` (+23 more)
- **#113378: fix(bot-mode): second prompt on a same-named profile no longer lands on the primary connection; Passwords & Logins asks the connection it shows (#94811, salvage #113284)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/app/contrib/session-rpc-dispatcher.test.ts`, `apps/desktop/src/app/contrib/session-rpc-dispatcher.ts`, `apps/desktop/src/app/contrib/wiring-routing.ts`, `apps/desktop/src/app/session/hooks/use-session-actions/utils.ts`, `apps/desktop/src/app/settings/vault-settings.owner.test.tsx`, `apps/desktop/src/app/settings/vault-settings.test.tsx`, `apps/desktop/src/app/settings/vault-settings.tsx`, `apps/desktop/src/store/session-states.test.ts`, `apps/desktop/src/store/session-states.ts`, `contributors/emails/[redacted:email]`
- **#94864: fix(desktop): preserve ordinary session connection ownership**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `8e9459c97`, `#94864`, `#94877`, `#94901`, `#95007`, `#94656`, `#95407`, `#94724`
- **#113284: fix(desktop): session RPCs route by the owning connection, not a bare profile name**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `924e47003013`, `#113378`

## Fix status

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