# NousResearch/hermes-agent · Fix gateway profile not restored on switch back

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #110851: fix(desktop): restore the last-used profile when the primary local descriptor is profile-less

These issues and PRs address a bug where switching back to a gateway connection fails to restore the last-used profile, landing on 'default' instead. The work involves reading and applying the 'lastProfileByConnection' value that was being recorded but not used.

## TL;DR

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

- #110819: Desktop: switching back to a gateway always lands on \`default\` — \`lastProfileByConnection\` is recorded but not restored

## Prior & competing PRs

- **#111424: fix(desktop): switching back to a gateway restores its last-used profile instead of default (#110819, salvage #110851)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/electron/main.ts`, `apps/desktop/src/store/connections.test.ts`, `apps/desktop/src/store/connections.ts`
- **#110844: fix(desktop): restore lastProfileByConnection on gateway switch (#110819)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#110851`, `#110819`
- **#110851: fix(desktop): restore the last-used profile when the primary local descriptor is profile-less**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#110844`
  - files: `apps/desktop/electron/main.ts`, `apps/desktop/src/store/connections.test.ts`, `apps/desktop/src/store/connections.ts`

## Fix status

- Merged to main in PR #111424 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-15`.
- Subsystem: `apps/desktop`
