# NousResearch/hermes-agent · config.set overwriting config.yaml after malformed YAML

## Open now

- 1 issue, 2 PRs open on GitHub.
- #66752: \[Bug\]: config.set may overwrite the full config after YAML parse failure and strips round-trip metadata
- PR #66844: fix: config.set fail-closed on malformed YAML, preserving comments (#66752)
- PR #71809: fix(tui_gateway): stop TUI config toggles from wiping config.yaml on invalid YAML

These members all concern config.set or TUI config toggles potentially overwriting or wiping the full config when YAML parsing fails. One is a bug report that also mentions loss of round-trip metadata, and two are fix proposals aiming to fail closed on invalid YAML (one also mentions preserving comments).

## TL;DR

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

- #66752: \[Bug\]: config.set may overwrite the full config after YAML parse failure and strips round-trip metadata

## Prior & competing PRs

- **#66844: fix: config.set fail-closed on malformed YAML, preserving comments (#66752)**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `43504da0e5993750e1e5816f47365c43c29f79af`, `#118918`
  - files: `tui_gateway/server.py`
- **#71809: fix(tui_gateway): stop TUI config toggles from wiping config.yaml on invalid YAML**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `1b72a5e69700`, `#66752`, `#66844`, `#71809`, `#374151`
  - files: `hermes_cli/config.py`, `tests/hermes_cli/test_config.py`, `tests/tui_gateway/test_protocol.py`, `tui_gateway/server.py`

## Fix status

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