# NousResearch/hermes-agent · Mattermost session isolation and thread scoping fixes

## Open now

- 0 issues, 3 PRs open on GitHub.
- PR #37144: fix(mattermost): keep thread root and replies in one session
- PR #54229: fix(mattermost): extend session-continuity root-id fix to DM channels
- PR #80530: feat(mattermost): isolate DM sessions per top-level message (Slack parity)

These issues and PRs address how sessions are scoped in Mattermost integrations, focusing on isolating sessions per thread or user to prevent context bloat, message leakage, and blocked parallel conversations across DMs and channels.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 3 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_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

- #18279: Mattermost root threads share one session and block parallel conversations

## Prior & competing PRs

- **#37144: fix(mattermost): keep thread root and replies in one session**. open
  - maintainer direction: category `merged_via`; implication `superseded`
  - files: `plugins/platforms/mattermost/adapter.py`, `tests/gateway/test_mattermost.py`
- **#54229: fix(mattermost): extend session-continuity root-id fix to DM channels**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `plugins/platforms/mattermost/adapter.py`, `tests/gateway/test_mattermost.py`
- **#80530: feat(mattermost): isolate DM sessions per top-level message (Slack parity)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#18279`
  - files: `plugins/platforms/mattermost/adapter.py`, `tests/gateway/test_mattermost.py`

## Fix status

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