# NousResearch/hermes-agent · Fix session working directory for context resolution

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where the session's current working directory was not consistently used for project context file discovery across gateway, conversation, and ACP components. Changes align context resolution to use the correct session cwd rather than a stale or incorrect path.

## TL;DR

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

- #11515: \[Bug\]: ACP session cwd is used for tool execution but not for project context file discovery

## Prior & competing PRs

- **#71644: fix(acp): pin the session cwd for the turn and for slash commands**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `acp_adapter/server.py`, `contributors/emails/[redacted:email]`, `tests/acp/test_server.py`
- **#71676: fix(conversation): rebuild the system prompt when the working directory drifts**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/conversation_loop.py`, `agent/system_prompt.py`, `tests/run_agent/test_compression_persistence.py`
- **#11570: fix(acp): use session cwd for project context discovery**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#71644`, `#71676`, `#47915`, `#11515`
- **#47915: fix(conversation): prevent stale prefix cache on cwd or runtime surfa…**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `a2b0d6d8e4`, `30cd6e989d`, `7a61b66dac`, `e741dc7d91`, `cfd2a38223`, `#71676`, `#11515`, `#11570`

## Fix status

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