# NousResearch/hermes-agent · Fix missing active=1 in hermes_state message INSERTs

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where INSERT statements in hermes_state.py omit the \`active\` column, causing rows to have NULL values. Proposed fixes explicitly set active=1 in those INSERTs, with at least one variant also healing existing NULL rows on startup.

## 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 #60108. Verify it addresses your case.
- **Recommended:** read PR #60108 (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-60108`. 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

- #51646: \[Bug\]: Gateway Memory Loss — INSERT omits \`active\` column in \`hermes_state.py\`

## Prior & competing PRs

- **#51651: fix(hermes_state): explicitly set active=1 in INSERT statements**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#51646`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#60108: fix(state): set active=1 explicitly in message INSERTs + heal NULL rows on startup (#51646)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_state.py`, `tests/test_hermes_state.py`
- **#59832: fix(state): set active=1 explicitly in message INSERTs (#51646)**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `#60108`

## Fix status

- Merged to main in PR #60108 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-07`.
- Subsystem: `gateway`
