# NousResearch/hermes-agent · config set corrupting config.yaml with inline comments

## Open now

- 1 issue, 2 PRs open on GitHub.
- #148524: \[Bug\]: \`hermes config set\` corrupts a key that carries an inline comment
- PR #148696: fix(config): stop round-trip writes from corrupting a commented config.yaml
- PR #150985: fix(config): config set no longer corrupts config.yaml when a commented key's collection is emptied

These members all concern \`hermes config set\` or round-trip writes affecting a config.yaml that contains comments, especially keys with inline comments or emptied values and collections. One is a bug report and three are fix-titled changes; the titles alone do not show whether the problem has been closed out.

## TL;DR

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

## Open related issues

- #148524: \[Bug\]: \`hermes config set\` corrupts a key that carries an inline comment

## Prior & competing PRs

- **#148569: fix(config): an emptied collection under a commented key keeps config.yaml parseable**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#150985`
- **#148572: fix(config): keep config.yaml parseable when a set empties an inline-commented key**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#148569`
- **#148696: fix(config): stop round-trip writes from corrupting a commented config.yaml**. open
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#150985`
  - files: `contributors/emails/[redacted:email]`, `hermes_yaml.py`, `tests/hermes_cli/test_config_set_comments.py`, `tests/test_hermes_yaml.py`, `tests/test_utils_atomic_roundtrip_yaml_save.py`, `tests/test_utils_roundtrip_yaml_comment_properties.py`, `tests/test_utils_roundtrip_yaml_next_section_comments.py`, `utils.py`
- **#150985: fix(config): config set no longer corrupts config.yaml when a commented key's collection is emptied**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `2e410ee955eb7efb9c7e38c2ea24b61022ea7d10`, `#148696`
  - files: `contributors/emails/[redacted:email]`, `hermes_yaml.py`, `tests/hermes_cli/test_config_set_comments.py`, `tests/test_hermes_yaml.py`, `tests/test_utils_atomic_roundtrip_yaml_save.py`, `tests/test_utils_roundtrip_yaml_comment_properties.py`, `utils.py`

## Fix status

- No merged fix on record.
- Subsystem: `hermes_cli`
- Kind: `bug` (from the open issues' GitHub type labels).
