# NousResearch/hermes-agent · Matrix DM detection fix via is_direct flag

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where the Matrix gateway incorrectly classified 2-person rooms as direct messages based on member count, affecting mention requirements and threading behavior. The proposed fix replaces the member-count heuristic with the is_direct flag for more reliable DM detection.

## TL;DR

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

- #24114: \[Bug\]: Matrix gateway misclassifies 2-person rooms as DMs, disabling \`MATRIX_REQUIRE_MENTION\` and group auto-threading

## Prior & competing PRs

- **#24118: fix(matrix): drop member-count DM fallback that misclassifies 2-person group rooms**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#36783: fix(gateway): avoid classifying all 2-member Matrix rooms as DMs**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#39923`
- **#39923: fix(matrix): check is_direct flag instead of member count for DM detection**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#44700`

## Fix status

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