# NousResearch/hermes-agent · Gateway session lifecycle and minor fixes

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #23255: fix(gateway): skip finalize hook without prior session

These changes address edge cases in gateway session initialization and teardown, particularly guarding against finalize hooks firing when no prior session exists, plus small TUI and cron cleanup fixes.

## TL;DR

- 6 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 0 merged PR(s), 4 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.33`: 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

- #12176: /new emits on_session_finalize(session_id=None) when no prior session exists

## Prior & competing PRs

- **#14681: fix(tui): remove 'q' alias from /quit, add to /queue**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#32074`, `#31985`
- **#14957: fix: stabilization fixes and architectural enhancements**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#14712`, `#12176`, `#12184`, `#12190`, `#12108`, `#24276`, `#23255`
- **#23255: fix(gateway): skip finalize hook without prior session**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#12184`, `#12176`
  - files: `gateway/run.py`, `tests/gateway/test_session_boundary_hooks.py`
- **#24276: fix(gateway): skip fake finalize hook on first /new**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#23255`, `#12184`, `#12176`
- **#49523: fix: stabilization fixes and architectural enhancements**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#48290`, `#14909`, `#14913`, `#14957`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
