# NousResearch/hermes-agent · Fix terminal workdir path expansion and warnings

## Open now

- 1 issue, 2 PRs open on GitHub.
- #26151: \[Bug\]: terminal(background=true) ignores ~ in workdir, falls back to /tmp
- PR #26156: fix(terminal): expand ~ and env vars in workdir for background processes
- PR #26217: fix(terminal): expand background workdir home paths

Multiple fixes addressing failure to expand ~ and environment variables in terminal workdir paths for background processes, plus suppression of repeated 'cwd missing' and spawn warnings on Windows with MSYS/git-bash paths.

## TL;DR

- 7 member(s): 1 open issue(s), 1 closed issue(s), 2 open PR(s), 0 merged PR(s), 3 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_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.

## Open related issues

- #26151: \[Bug\]: terminal(background=true) ignores ~ in workdir, falls back to /tmp

## Closed / duplicate issues

- #23846: LocalEnvironment: repeated 'cwd missing on disk' warning on Windows with git-bash MSYS paths

## Prior & competing PRs

- **#23866: Fix/local env msys cwd windows**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `4aec25bc4411edb4563292cadbd02c365c846286`, `#23846`, `#23862`
- **#26196: fix(terminal): expand ~ and $VAR in workdir before directory check (#26151)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `70b663504`, `#26156`, `#26156`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#26156: fix(terminal): expand ~ and env vars in workdir for background processes**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tests/tools/test_local_env_cwd_recovery.py`, `tools/environments/local.py`, `tools/terminal_tool.py`
- **#26164: fix(terminal): expand ~ and $VAR in workdir before resolving cwd**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#26156`, `#26151`
- **#26217: fix(terminal): expand background workdir home paths**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#26156`, `#26196`, `#26151`
  - files: `tests/tools/test_local_env_cwd_recovery.py`, `tests/tools/test_process_registry.py`, `tools/environments/local.py`

## Fix status

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