# NousResearch/hermes-agent · YAML config scalar mutation and data loss fixes

## Open now

- Nothing open on GitHub.

These issues and pull requests address bugs in config.yaml handling where ruamel-yaml re-folding silently mutated long quoted scalars, and where transient read errors could wipe config contents. The work focuses on preserving stored values accurately during config read and write operations.

## TL;DR

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

## Closed / duplicate issues

- #119844: \[Bug\]: config saves silently insert spaces into long double-quoted scalars (ruamel re-folding mutates stored values)

## Prior & competing PRs

- **#120343: fix(config): a transient read error no longer wipes config.yaml (explicit nulls kept, no phantom agent section; salvage #105828, #119846)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `gateway/slash_commands.py`, `hermes_cli/auth.py`, `hermes_cli/config.py`, `hermes_cli/config_effective.py`, `hermes_cli/config_read_errors.py`, `hermes_cli/web_routers/config_env.py`, `hermes_cli/xai_retirement.py`, `tests/hermes_cli/test_config.py`, `tests/hermes_cli/test_config_save_integrity.py`, `tests/hermes_cli/test_resolve_provider_corrupt_config.py`, `tests/hermes_cli/test_xai_retirement.py`, `tests/test_utils_atomic_roundtrip_yaml_save.py`, `tui_gateway/server.py`, `utils.py`
- **#119846: fix(config): preserve long quoted scalars**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `7f59505685`, `2f0cab5141`, `b0369c49a1`, `8afaab3703`, `#120343`
- **#120278: fix(config): stop YAML re-folding from mutating stored config scalars (#119844)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `7f59505685`, `2f0cab5141`, `b0369c49a1`, `8afaab3703`, `#119846`, `#120343`
- **#127439: fix: fix/119844-ruamel-yaml-fold**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#119844`

## Fix status

- Merged to main in PR #120343 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-23`.
- Subsystem: `other`
