# NousResearch/hermes-agent · DM and thread session context mixing fixes

## Open now

- 2 issues, 2 PRs open on GitHub.
- #39572: Discord thread sessions appear to mix context between threads
- #67943: gateway: /sessions empty when DM sessions have mismatched thread_id
- PR #67945: fix(gateway): skip thread_id comparison for DM sessions in /sessions listing
- PR #68024: fix(gateway): skip thread_id comparison for DM sessions in _same_origin_chat and _resume_target_allowed

These issues and pull requests address bugs where DM sessions had mismatched or incorrectly compared thread IDs, causing session listing problems and context mixing between Discord threads. Fixes involve skipping thread_id comparisons for DM sessions and using effective channel references for backfill.

## TL;DR

- 4 member(s): 2 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.39`: 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

- #39572: Discord thread sessions appear to mix context between threads
- #67943: gateway: /sessions empty when DM sessions have mismatched thread_id

## Prior & competing PRs

- **#67945: fix(gateway): skip thread_id comparison for DM sessions in /sessions listing**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `358f19164d3b`, `#67943`, `#67945`, `#68024`, `#67945`, `#68024`, `#67945`, `#67945`, `#67945`, `#68024`, `#67943`, `#68024`, `#67945`, `#67945`, `#68024`, `#67945`, `#374151`, `#67943`, `#67945`, `#68024`
  - files: `gateway/slash_commands.py`, `tests/gateway/test_resume_command.py`
- **#68024: fix(gateway): skip thread_id comparison for DM sessions in _same_origin_chat and _resume_target_allowed**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#67945`, `#67943`
  - files: `gateway/slash_commands.py`

## Fix status

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