# NousResearch/hermes-agent · Fix file tools breaking when cwd is a host path

## Open now

- Nothing open on GitHub.

These items address a bug where file tools fail when terminal.cwd is set to a host path that the Docker container cannot navigate to. Fixes include re-validating the container working directory before each file-tool execution and sanitizing cwd overrides in live container environments.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #114833. Verify it addresses your case.
- **Recommended:** read PR #114833 (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: `resolved` · deciding PR(s): `pr-114833`. 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.

## Closed / duplicate issues

- #113894: file tools fail outside the mapped workspace when terminal.cwd is a host path the container cannot cd into

## Prior & competing PRs

- **#114833: fix(tools): file tools keep working outside /workspace when terminal.cwd is a host path on the docker backend (#113894, #98723, salvage #113946, #113931)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_file_operations_edge_cases.py`, `tests/tools/test_file_ops_cwd_tracking.py`, `tests/tools/test_live_env_cwd_override_sanitize.py`, `tools/environments/docker.py`, `tools/file_operations.py`, `tools/file_operations_common.py`, `tools/file_operations_search.py`, `tools/terminal_tool.py`, `tools/terminal_tool_backends.py`, `website/docs/user-guide/configuration.md`
- **#113931: fix(tools): re-validate container cwd before every file-tool exec**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `10433003ec49`, `#114833`, `#113894`, `#98723`, `#113946`, `#113931`
- **#113946: fix(tools): sanitize cwd overrides written into live container envs**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `10433003ec49`, `#114833`, `#113894`, `#98723`, `#113946`, `#113931`

## Fix status

- Merged to main in PR #114833 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-18`.
