# NousResearch/hermes-agent · Non-UTF-8 file encoding handling in writes and edits

## Open now

- 1 issue, 1 PR open on GitHub.
- #121982: \[Bug\]: a file edit writes inserted text as UTF-8 into a non-UTF-8 file and reports success (write half of #120514)
- PR #124810: fix(tools): refuse an edit that would leave a file in two encodings

These items address a bug where text inserted into non-UTF-8 files is written as UTF-8 without error, and propose fixes to either write in the file's own encoding or refuse operations that would leave a file with mixed encodings.

## TL;DR

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

## Open related issues

- #121982: \[Bug\]: a file edit writes inserted text as UTF-8 into a non-UTF-8 file and reports success (write half of #120514)

## Prior & competing PRs

- **#124110: fix(file-ops): write a non-UTF-8 file in its own encoding, or refuse**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#124810: fix(tools): refuse an edit that would leave a file in two encodings**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tests/tools/test_file_operations.py`, `tools/file_operations.py`

## Fix status

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