# NousResearch/hermes-agent · Sanitize and validate terminal workdir before Docker exec

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where an invalid or unsafe working directory value could be passed through to Docker's exec or run commands, bypassing configured terminal CWD settings. The work focuses on input validation and sanitization of the workdir parameter in terminal tool backends.

## TL;DR

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

- #4669: \[Bug\]: terminal tool passes invalid workdir to Docker exec and overrides configured terminal.cwd

## Prior & competing PRs

- **#4978: fix: validate per-call workdir before passing to docker exec**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#5629`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#4731: fix(tools): validate per-call workdir and preserve resolved TERMINAL_CWD**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#4672`, `#11029`, `#4669`, `#5620`

## Fix status

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