# NousResearch/hermes-agent · terminal.cwd config not honored by local terminal backend

## Open now

- 1 issue, 2 PRs open on GitHub.
- #42961: terminal.cwd config ignored for local backend — process cwd always used instead
- PR #42984: fix(cli): respect explicit terminal.cwd for local backend
- PR #43075: fix(cli): respect explicit terminal.cwd path for local backend

Most members concern the terminal.cwd setting being ignored or overridden in the CLI, local terminal backend, or TUI gateway, including two bug reports and several proposed fixes. One member touches a related case involving login profile scripts and the working directory. Resolution status is not stated here.

## TL;DR

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

- #42961: terminal.cwd config ignored for local backend — process cwd always used instead

## Closed / duplicate issues

- #14044: \[Bug\]: terminal.cwd is not respected by terminal tool

## Prior & competing PRs

- **#14079: fix(cli): bridge terminal.cwd config to TERMINAL_CWD in TUI gateway**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#14044`, `#12983`, `#10226`, `#12689`, `#10225`, `#7663`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#17205: fix(terminal): restore configured cwd after login profile scripts (salvage #14796)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_init_session_cwd_respect.py`, `tools/environments/base.py`
- **#59340: fix(cli): respect explicit terminal.cwd for local backend (#42961)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#14136: fix(cli): respect terminal.cwd in chat sessions**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `ac855bba0`, `4c1362884`, `#17205`, `#14796`, `#14044`
- **#14264: fix(terminal): use TERMINAL_CWD for local backend default_cwd**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `ac855bba0`, `4c1362884`, `#17205`, `#14044`
- **#14796: fix(cli): respect terminal.cwd config in local terminal backend**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#14044`, `#17205`, `#14796`
- **#42984: fix(cli): respect explicit terminal.cwd for local backend**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `cb9a0047a025e9f247a1c5b44c68e5f6ee048422`, `#42984`, `#42961`
  - files: `cli.py`, `tests/cli/test_cwd_env_respect.py`
- **#43075: fix(cli): respect explicit terminal.cwd path for local backend**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `a11aed1ac`
  - files: `cli-config.yaml.example`, `cli.py`, `tests/cli/test_cwd_env_respect.py`, `website/docs/user-guide/configuration.md`, `website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md`

## Fix status

- Merged to main in PR #17205 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-29`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
- Subsystem: `environments`
- Kind: `bug` (from the open issues' GitHub type labels).
