# NousResearch/hermes-agent · Fuzzy match double-indent bug with unindented first line

## Open now

- 1 issue, 1 PR open on GitHub.
- #88264: \[Bug\]: patch/fuzzy_find_and_replace doubles indentation on CRLF files when old_string's first line is unindented (empty old_indent in _reindent_replacement)
- PR #88320: fix(fuzzy_match): don't double-indent when old_string has column-0 first line

A bug where fuzzy_match/patch incorrectly doubles indentation when the old_string's first line starts at column 0, including a reported case involving CRLF files. Members include a bug report and related fixes.

## TL;DR

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

- #88264: \[Bug\]: patch/fuzzy_find_and_replace doubles indentation on CRLF files when old_string's first line is unindented (empty old_indent in _reindent_replacement)

## Prior & competing PRs

- **#137288: fix(tools): patch matching fixes from NVIDIA batch (#128006, #128020, #128138)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_escape_drift_autocorrect.py`, `tests/tools/test_file_tools_live.py`, `tests/tools/test_fuzzy_match.py`, `tools/escape_drift_autocorrect.py`, `tools/file_operations.py`, `tools/fuzzy_match.py`, `tools/patch_parser.py`, `tools/skill_manager_tool.py`
- **#88283: fix(fuzzy_match): don't double-indent when old_string has column-0 first line**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#88320: fix(fuzzy_match): don't double-indent when old_string has column-0 first line**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `9df6b0f735`, `#88264`, `#104330`
  - files: `tests/tools/test_fuzzy_match_crlf_indent.py`, `tools/fuzzy_match.py`
- **#128020: fix(tools): patch reindent midline anchor**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#137288`

## Fix status

- Merged to main in PR #137288 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-12`.
- Subsystem: `agent`
