# NousResearch/hermes-agent · Bogus Errno 2 error when process cwd is deleted

## Open now

- Nothing open on GitHub.

A bug where write_file/patch operations incorrectly raised a spurious \[Errno 2\] error when the LSP workspace resolver encountered a deleted process working directory. The members include the bug report and related fix attempts.

## TL;DR

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

- #115342: \[Bug\]: write_file/patch report a bogus \`\[Errno 2\]\` when the process cwd was deleted — LSP workspace resolver raises after a successful write

## Prior & competing PRs

- **#115718: fix(lsp): a deleted process cwd no longer fails write_file/patch with a bogus \[Errno 2\] (#115342, salvage #115355)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/lsp/eventlog.py`, `agent/lsp/workspace.py`, `tests/agent/lsp/test_diagnostics_field.py`, `tests/agent/lsp/test_workspace.py`, `tools/file_operations_lint.py`
- **#115355: fix(lsp): a deleted process cwd no longer fails write_file/patch with a bogus \[Errno 2\]**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6b3005c4c8b8fdf94306f3a790e58ceec490a156`, `#115718`

## Fix status

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