# NousResearch/hermes-agent · Discord auto-thread duplicate creation bug fixes

## Open now

- 1 issue, 4 PRs open on GitHub.
- #73032: \[Bug\]: Discord auto-thread fallback can create duplicate threads and duplicate agent replies
- PR #52423: fix(discord): delete orphaned auto-thread seed message on fallback failure
- PR #73092: fix(discord): prevent duplicate threads on create_thread exception (#73032)
- PR #73097: fix(discord): reconcile ambiguous auto-thread creation
- PR #83817: fix(discord): reconcile ambiguous auto-thread creation

These issues and pull requests address a bug where Discord auto-thread creation could produce duplicate threads and orphaned seed messages under failure or ambiguous conditions. Multiple fixes attempt to reconcile or prevent these race/fallback scenarios.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 4 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.40`: 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

- #73032: \[Bug\]: Discord auto-thread fallback can create duplicate threads and duplicate agent replies

## Prior & competing PRs

- **#52423: fix(discord): delete orphaned auto-thread seed message on fallback failure**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `plugins/platforms/discord/adapter.py`, `tests/gateway/test_discord_auto_thread_orphan_seed.py`
- **#73092: fix(discord): prevent duplicate threads on create_thread exception (#73032)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#73032`
  - files: `plugins/platforms/discord/adapter.py`
- **#73097: fix(discord): reconcile ambiguous auto-thread creation**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `d55bab7b6`, `39486ff3a`, `45d1d7df3570`, `#73032`, `#8692`, `#11629`, `#20260`, `#56108`, `#48685`, `#73097`, `#48690`, `#48685`, `#52423`, `#52422`, `#52430`, `#52423`, `#52423`, `#56108`, `#20243`, `#20260`, `#73032`, `#73092`, `#73097`, `#73097`, `#20260`, `#56108`, `#48690`, `#48685`, `#52430`, `#52423`, `#73092`, `#73097`, `#48685`, `#73097`, `#73097`, `#73092`, `#73097`, `#73097`, `#52423`, `#52422`, `#52430`, `#374151`, `#73032`, `#73097`
  - files: `plugins/platforms/discord/adapter.py`, `tests/gateway/test_discord_slash_commands.py`
- **#83817: fix(discord): reconcile ambiguous auto-thread creation**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `plugins/platforms/discord/adapter.py`, `tests/gateway/test_discord_slash_commands.py`

## Fix status

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