# NousResearch/hermes-agent · Preserve user comments in config.yaml writes

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where writing to config.yaml—via commands like config set and plugins enable/disable—strips or replaces user-authored comments. Work involves a comment-preserving writer and related fixes across multiple CLI operations.

## TL;DR

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

- #92554: Writing config.yaml destroys all user comments (config set strips them; plugins enable replaces them with default boilerplate)

## Prior & competing PRs

- **#118918: config.yaml comments survive every writer: one comment-preserving writer + CI guard (#92554, #63039, #50698, #107511)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `.github/workflows/lint.yml`, `hermes_cli/AGENTS.md`, `hermes_cli/auth.py`, `hermes_cli/backup.py`, `hermes_cli/config.py`, `hermes_cli/credential_lifecycle.py`, `hermes_cli/profile_channels.py`, `hermes_cli/profiles.py`, `plugins/platforms/telegram/adapter.py`, `scripts/check_config_yaml_writers.py`, `tests/gateway/test_dm_topics.py`, `tests/hermes_cli/test_config.py`, `tests/hermes_cli/test_config_yaml_comment_preservation.py`, `tests/hermes_cli/test_model_provider_persistence.py`, `tui_gateway/server.py`, `utils.py`
- **#92652: fix(config): preserve config.yaml comments in plugins enable/disable**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `43504da0e5993750e1e5816f47365c43c29f79af`, `#118918`, `#92554`, `#63039`, `#50698`
- **#105271: fix(cli): preserve comments in whole-document config.yaml writes**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `43504da0e5993750e1e5816f47365c43c29f79af`, `#118918`, `#92554`, `#63039`, `#50698`

## Fix status

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