# NousResearch/hermes-agent · Terminal per-command workdir incorrectly mutates session cwd

## Open now

- 1 issue, 2 PRs open on GitHub.
- #73683: \[Bug\]: terminal workdir= is documented per-command but permanently changes the session's cwd (visible since desktop session-folder display)
- PR #73717: fix(terminal): per-command workdir= must not mutate session cwd (#73683)
- PR #73738: fix(terminal): keep a per-command workdir out of the session's cwd

A bug where specifying workdir= for a single terminal command permanently changes the session's working directory instead of being scoped to that command only. Multiple fixes and reports address restoring the session cwd after one-off workdir= usage.

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

- #73683: \[Bug\]: terminal workdir= is documented per-command but permanently changes the session's cwd (visible since desktop session-folder display)

## Prior & competing PRs

- **#73717: fix(terminal): per-command workdir= must not mutate session cwd (#73683)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `aaa58ec6a650`, `#73683`, `#73717`, `#73738`, `#73731`, `#374151`
  - files: `tests/tools/test_workdir_session_cwd.py`, `tools/terminal_tool.py`
- **#73731: fix(tools): restore session workdir after one-off terminal workdir=**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#73731`
- **#73738: fix(terminal): keep a per-command workdir out of the session's cwd**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#73717`, `#73683`
  - files: `tests/tools/test_base_environment.py`, `tools/environments/base.py`

## Fix status

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