# NousResearch/hermes-agent · Gateway session cwd missing or empty fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #93625: \[Bug\]: Gateway-created sessions persisted with empty cwd — desktop sidebar drops them (looks like lost history)
- PR #93671: fix(gateway): persist cwd for messaging sessions
- PR #128811: fix(gateway): seed messaging session rows with the launch workspace cwd

These issues and pull requests address a bug where gateway-created sessions were persisted with an empty working directory, and introduce fixes to default or seed the cwd from available environment or workspace context. The desktop sidebar dropping sessions that lack a cwd is the reported symptom.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.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.

## Open related issues

- #93625: \[Bug\]: Gateway-created sessions persisted with empty cwd — desktop sidebar drops them (looks like lost history)

## Prior & competing PRs

- **#93671: fix(gateway): persist cwd for messaging sessions**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `gateway/session.py`, `hermes_state.py`, `tests/gateway/test_session.py`
- **#126500: fix(gateway): default session cwd to TERMINAL_CWD or HOME**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#128811: fix(gateway): seed messaging session rows with the launch workspace cwd**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#64709`
  - files: `gateway/session_recovery.py`, `tests/gateway/test_gateway_session_cwd.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
