# NousResearch/hermes-agent · Cross-profile terminal CWD isolation bug fixes

## Open now

- 0 issues, 3 PRs open on GitHub.
- PR #87659: fix(gateway): cross-profile sessions fall back to their own home, not launch cwd
- PR #87893: fix(desktop): isolate pooled profile cwd
- PR #94909: fix(desktop): preserve detached runtime workspace

A bug where new sessions in one profile incorrectly inherit another profile's working directory, along with two fixes addressing CWD isolation in pooled backend and gateway contexts.

## TL;DR

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

- #87584: \[Bug\]: New session in profile X inherits another profile's TERMINAL_CWD (pooled backend env not re-resolved per profile)

## Prior & competing PRs

- **#128834: fix(tui_gateway+desktop): pooled profile sessions land in their own workspace**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/electron/backend-env.test.ts`, `apps/desktop/electron/backend-env.ts`, `apps/desktop/electron/main.ts`, `tests/tui_gateway/test_completion_cwd_profile_fallback.py`, `tui_gateway/session_workdir.py`
- **#87659: fix(gateway): cross-profile sessions fall back to their own home, not launch cwd**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#87584`
  - files: `tests/tui_gateway/test_tui_gateway_server.py`, `tui_gateway/session_workdir.py`
- **#87893: fix(desktop): isolate pooled profile cwd**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `#87659`
  - files: `apps/desktop/electron/backend-env.test.ts`, `apps/desktop/electron/backend-env.ts`, `apps/desktop/electron/main.ts`
- **#94909: fix(desktop): preserve detached runtime workspace**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts`, `apps/desktop/src/app/session/hooks/use-message-stream/session-info-workspace-event.test.tsx`, `apps/desktop/src/app/session/hooks/use-message-stream/utils.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.test.ts`, `apps/desktop/src/app/session/hooks/use-session-actions/utils.ts`, `apps/desktop/src/app/types.ts`, `apps/desktop/src/lib/chat-messages/types.ts`, `apps/desktop/src/lib/chat-runtime.ts`, `apps/desktop/src/types/hermes.ts`, `tests/test_tui_gateway_server.py`, `tests/tui_gateway/test_compute_host_phase1.py`, `tui_gateway/compute_host.py`, `tui_gateway/methods_session.py`, `tui_gateway/server.py`

## Fix status

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