# NousResearch/hermes-agent · Working directory overridden during session reloads

## Open now

- 1 issue, 2 PRs open on GitHub.
- #86411: \[Bug\]: explicit terminal.cwd re-pins the working directory mid-turn, overriding the launch dir on the local backend
- PR #86479: fix(cwd): keep local CLI and TUI sessions in their launch directory
- PR #128762: fix(cli): keep the local CLI's working directory through terminal config bridges

These items address a bug where the working directory gets re-pinned or overridden mid-session on the local backend, particularly during dotenv reloads. The fixes aim to preserve the original launch directory throughout CLI and TUI sessions.

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

- #86411: \[Bug\]: explicit terminal.cwd re-pins the working directory mid-turn, overriding the launch dir on the local backend

## Prior & competing PRs

- **#86479: fix(cwd): keep local CLI and TUI sessions in their launch directory**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `cli.py`, `hermes_cli/config.py`, `hermes_cli/env_loader.py`, `tests/cli/test_cwd_env_respect.py`, `tests/hermes_cli/test_env_loader.py`, `tests/tui_gateway/test_launch_cwd.py`, `tui_gateway/entry.py`
- **#127762: fix(cli): keep local-backend launch dir across dotenv reloads**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#128762: fix(cli): keep the local CLI's working directory through terminal config bridges**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `f19225efdd2d9b8f76588eed9c20954b6c751f84`
  - files: `agent/runtime_cwd.py`, `cli.py`, `hermes_cli/config.py`, `hermes_cli/oneshot.py`, `tests/tools/test_terminal_env_bridge.py`, `website/docs/reference/profile-commands.md`, `website/docs/user-guide/profiles.md`

## Fix status

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