# NousResearch/hermes-agent · BlueBubbles webhook deduplication and duplicate reply fixes

## Open now

- 4 issues, 6 PRs open on GitHub.
- #30708: BlueBubbles adapter lacks inbound dedup → duplicate processing + two parallel sessions per message
- #30989: \[Bug\]: BlueBubbles attachments arrive as a second event and interrupt the in-progress turn (no debounce/merge like Telegram)
- #34372: BlueBubbles: webhook auto-registration includes 'updated-message', causing every iMessage to be processed twice (with different chat-id variants)
- #68718: BlueBubbles adapter: duplicate iMessage replies — webhook subscribes to updated-message and handler doesn't dedupe by GUID
- PR #33337: fix: deduplicate BlueBubbles webhook messages
- PR #34378: fix(bluebubbles): remove updated-message from webhook subscription to prevent duplicate processing
- PR #38379: fix(bluebubbles): ignore update echoes before dedup
- PR #45717: fix(bluebubbles): prevent duplicate processing and DM-to-group misrouting
- PR #68726: bluebubbles: de-duplicate re-delivered webhooks to stop double replies
- PR #103459: fix(gateway): dedupe BlueBubbles duplicate deliveries; canonicalize 1:1 chat ids

Nearly all members concern duplicate message processing in the BlueBubbles adapter caused by webhook subscription to 'updated-message' events and missing GUID-based deduplication. One member touches unrelated gateway batching and MCP resilience.

## TL;DR

- 15 member(s): 4 open issue(s), 1 closed issue(s), 6 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_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.15`: 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

- #30708: BlueBubbles adapter lacks inbound dedup → duplicate processing + two parallel sessions per message
- #30989: \[Bug\]: BlueBubbles attachments arrive as a second event and interrupt the in-progress turn (no debounce/merge like Telegram)
- #34372: BlueBubbles: webhook auto-registration includes 'updated-message', causing every iMessage to be processed twice (with different chat-id variants)
- #68718: BlueBubbles adapter: duplicate iMessage replies — webhook subscribes to updated-message and handler doesn't dedupe by GUID

## Closed / duplicate issues

- #33327: BlueBubbles webhook conflicts can duplicate or interrupt replies

## Prior & competing PRs

- **#30996: fix(bluebubbles): dedup inbound webhook events by message GUID**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#33337: fix: deduplicate BlueBubbles webhook messages**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#18395`, `#30708`, `#30996`, `#19976`, `#22116`, `#27985`, `#45717`, `#30996`
  - files: `gateway/platforms/bluebubbles.py`, `tests/gateway/test_bluebubbles.py`
- **#34378: fix(bluebubbles): remove updated-message from webhook subscription to prevent duplicate processing**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `gateway/platforms/bluebubbles.py`, `tests/gateway/test_bluebubbles.py`
- **#38379: fix(bluebubbles): ignore update echoes before dedup**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `gateway/platforms/bluebubbles.py`, `tests/gateway/test_bluebubbles.py`
- **#45717: fix(bluebubbles): prevent duplicate processing and DM-to-group misrouting**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`
  - files: `gateway/platforms/bluebubbles.py`, `tests/gateway/test_bluebubbles.py`
- **#67105: fix(gateway): stabilize BlueBubbles DM session keys**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#45717`, `#45717`, `#66255`, `#66264`, `#45717`
- **#68726: bluebubbles: de-duplicate re-delivered webhooks to stop double replies**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `4170900a8ac8`, `#6608`, `#8266`, `#8275`, `#8275`, `#8513`, `#18395`, `#24229`, `#56132`, `#30996`, `#38379`, `#32313`, `#33337`, `#33327`, `#33541`, `#33489`, `#34378`, `#30708`, `#34372`, `#68718`, `#35606`, `#37091`, `#37091`, `#35606`, `#38342`, `#38339`, `#38379`, `#30708`, `#38339`, `#45317`, `#45378`, `#45717`, `#56132`, `#47262`, `#18395`, `#56132`, `#24157`, `#59029`, `#61808`, `#63990`, `#33489`, `#67105`, `#45717`, `#68726`, `#68718`, `#24229`, `#56132`, `#56132`, `#35606`, `#37091`, `#38342`, `#38379`, `#8266`, `#32313`, `#34378`, `#30996`, `#18395`, `#33337`, `#45378`, `#47262`, `#68726`, `#68726`, `#38379`, `#8275`, `#56132`, `#37091`, `#24229`, `#35606`, `#68726`, `#374151`, `#30708`, `#33327`, `#34372`, `#68718`, `#30996`, `#33337`, `#45378`, `#47262`, `#68726`
  - files: `gateway/platforms/bluebubbles.py`
- **#103459: fix(gateway): dedupe BlueBubbles duplicate deliveries; canonicalize 1:1 chat ids**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#30708`, `#86112`, `#86112`
  - files: `gateway/platforms/bluebubbles.py`, `tests/gateway/test_bluebubbles.py`
- **#106826: fix(bluebubbles): drop repeat new-message/updated-message deliveries**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#103459`
- **#106828: fix(bluebubbles): canonicalize DM session ids across webhook payload shapes**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#103459`, `#106824`, `#30708`, `#103459`

## Fix status

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