# NousResearch/hermes-agent · Compression child sessions losing cwd and workspace context

## Open now

- Nothing open on GitHub.

Multiple issues and fixes address a bug where compressed or split child sessions fail to inherit the parent session's working directory and git repo metadata, causing sessions to appear in no workspace or lose project sidebar entries.

## TL;DR

- 7 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 2 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #52658. Verify it addresses your case.
- **Recommended:** read PR #52658 (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: `partially_resolved` · deciding PR(s): `pr-69343`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.26`: 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

- #42228: Desktop/TUI compressed sessions can move into No workspace because continuation cwd is null
- #64709: bug(state): compression-split child sessions lose cwd/git_repo_root, causing project sidebar entry to disappear every compression

## Prior & competing PRs

- **#52658: feat(compression): flip in_place default to True + guard fix (#38763) \[salvage #51959\]**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `gateway/run.py`, `gateway/slash_commands.py`, `hermes_cli/config.py`, `scripts/release.py`, `tests/agent/test_compression_concurrent_fork.py`, `tests/agent/test_compression_logging_session_context.py`, `tests/agent/test_compression_rotation_state.py`, `tests/gateway/test_compression_concurrent_sessions.py`, `tests/gateway/test_session_hygiene.py`, `tests/run_agent/test_compression_boundary_hook.py`, `tests/run_agent/test_in_place_compaction.py`
- **#69343: fix(state): compression child sessions inherit cwd and repo metadata**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `hermes_state.py`, `tests/agent/test_compression_rotation_state.py`, `tests/test_hermes_state.py`
- **#42233: Fix #42228: Inherit parent session cwd in compressed continuation sessions**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#52658`, `#38763`
- **#42240: fix(agent): inherit parent session cwd during compression rotation**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#52658`, `#38763`
- **#64731: fix(state): inherit cwd/git_repo_root on parent_session_id children**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `75099ca0e`, `#69343`

## Fix status

- Merged to main in PR #52658 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-22`.
- Subsystem: `agent`
