# NousResearch/hermes-agent · Stale workspace path persists after gateway switch

## Open now

- Nothing open on GitHub.

A bug where switching gateways on Desktop retains the previous gateway's workspace folder as the current working directory. Includes a bug report, a related issue, and a fix targeting the stale currentCwd state.

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

- #114306: \[Bug\]: Desktop keeps the previous gateway's workspace folder after switching gateways (stale cwd shown and sent on session.create)

## Prior & competing PRs

- **#114329: Desktop gateway switch no longer keeps the previous gateway's workspace folder (#114306)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/store/gateway-switch.test.ts`, `apps/desktop/src/store/gateway-switch.ts`, `apps/desktop/src/store/session.test.ts`, `apps/desktop/src/store/session.ts`
- **#114325: fix: clear stale currentCwd on gateway switch with no remembered workspace**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `20f4879d302c`, `#114329`, `#114306`

## Fix status

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