Skip to content

fix(whatsapp): deduplicate re-delivered inbound messages on reconnect (#100481) - #107816

Open
salch-cred wants to merge 1 commit into
NousResearch:mainfrom
salch-cred:fix/100481-whatsapp-inbound-dedup
Open

salch-cred wants to merge 1 commit into
NousResearch:mainfrom
salch-cred:fix/100481-whatsapp-inbound-dedup

Conversation

@salch-cred

Copy link
Copy Markdown

Fixes #100481

Summary of Changes

  • Added bounded, persistent inbound message ID deduplication (\seen_message_ids) in \plugins/platforms/whatsapp/adapter.py\ to ignore duplicate messages re-delivered by the bridge during connection reconnects.
  • Deduplication state persists to \whatsapp_seen_message_ids.json\ in the WhatsApp session directory so duplicate filtering survives restarts.
  • Added automated unit tests in \ ests/gateway/test_whatsapp_dedup.py\ verifying duplicate message filtering and persistence loading.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins platform/whatsapp WhatsApp Business adapter sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages labels Sep 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins P2 Medium — degraded but workaround exists platform/whatsapp WhatsApp Business adapter sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WhatsApp: Hermes answers the same message over and over again (old message gets re-delivered on every reconnect)

2 participants