From 4611e799b77ea4e6b1c767bcd1f350b82147c8fa Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 26 Dec 2025 09:37:38 +0000 Subject: [PATCH] docs: note inbox listener cleanup --- docs/whatsapp.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/whatsapp.md b/docs/whatsapp.md index e7a3c7cb8..91296db6e 100644 --- a/docs/whatsapp.md +++ b/docs/whatsapp.md @@ -28,6 +28,7 @@ Status: WhatsApp Web via Baileys only. Gateway owns the single session. ## Inbound flow (DM + group) - WhatsApp events come from `messages.upsert` (Baileys). +- Inbox listeners are detached on shutdown to avoid accumulating event handlers in tests/restarts. - Status/broadcast chats are ignored. - Direct chats use E.164; groups use group JID. - **Allowlist**: `routing.allowFrom` enforced for direct chats only.