# NousResearch/hermes-agent · V4A patch corrupts untouched bytes like OSC/BEL

## Open now

- Nothing open on GitHub.

A bug was identified where V4A patch operations strip OSC escape sequences and BEL bytes from lines they never modified. The related items address making raw and fenced reads byte-preserving and ensuring both patch modes write back untouched bytes exactly.

## TL;DR

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

- #120514: \[Bug\]: a V4A patch deletes OSC escape sequences and BEL bytes from lines it never touched

## Prior & competing PRs

- **#120515: fix(file-ops): both patch modes write back untouched bytes exactly (OSC/BEL, legacy encodings)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_file_operations.py`, `tests/tools/test_file_write_safety.py`, `tests/tools/test_patch_parser.py`, `tools/file_operations.py`, `tools/file_operations_common.py`, `tools/file_operations_lint.py`, `tools/patch_parser.py`
- **#124334: fix(file-ops): keep fenced byte-exact reads usable under xtrace**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_file_write_safety.py`, `tools/file_operations.py`
- **#120559: fix(file-ops): make V4A raw reads byte-preserving**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#120515`, `#124334`, `#105277`, `#105904`, `#100275`

## Fix status

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