# NousResearch/hermes-agent · Session profile repair and legacy agent:main row handling

## Open now

- 1 issue, 0 PRs open on GitHub.
- #157581: \[Bug\]: \`sessions repair-profiles --apply\` relabels legacy agent:main: rows in a named store to 'default', although \`--legacy-main report\` (the default) says the rows cannot be classified

The three items all concern how session/profile repair tooling treats legacy \`agent:main:\` rows, including rekeying and relabeling to 'default' in named stores. One is a bug report about \`repair-profiles --apply\` relabeling rows that the default report mode says cannot be classified; the others are fixes touching gateway state metadata receipts and Desktop chat resumption after repair. The titles alone do not show how closely the fixes relate to the bug.

## TL;DR

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

- #157581: \[Bug\]: \`sessions repair-profiles --apply\` relabels legacy agent:main: rows in a named store to 'default', although \`--legacy-main report\` (the default) says the rows cannot be classified

## Prior & competing PRs

- **#161755: fix(sessions): migrated profiles' Desktop chats resume after repair-profiles (salvage #143156)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/Relogys@users.noreply.github.com`, `gateway/session_local_recovery.py`, `hermes_cli/sessions_cmd_repair_profiles.py`, `hermes_cli/sessions_repair_profiles.py`, `persistence/core/admin.py`, `persistence/sqlite/admin/profile_repair.py`, `tests/gateway/test_local_receipt_missing_profile.py`, `tests/hermes_cli/test_sessions_repair_profiles.py`, `website/docs/user-guide/sessions.md`
- **#143156: fix(gateway): repair state_meta local policy receipts on legacy-main rekey**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `cb2f46f6d101`, `#143150`, `#161755`

## Fix status

- Merged to main in PR #161755 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-11-30`.
- Subsystem: `gateway`
- Kind: `bug` (from the open issues' GitHub type labels).
