Repository navigation
Description
Summary
WhatsApp group messages never reach OpenClaw's inbound handling — gateway.call health never updates lastInboundAt/messagesHandled for group traffic, and directory groups list --channel whatsapp always returns [] — even though WhatsApp's own delivery receipts confirm the message reached the linked device. Direct messages (DMs) on the same account work perfectly and instantly. This reproduces across a fresh QR relink and across a full gateway + plugin version update.
Environment
- OpenClaw gateway: upgraded during triage from 2026.6.11 → 2026.7.1
@openclaw/whatsappplugin: upgraded from 2026.6.11 → 2026.7.1 (viaplugins install @openclaw/whatsapp --force)- Deployment: self-hosted, Docker Compose, prebuilt GHCR image
- WhatsApp account type: WhatsApp Business, linked via QR (companion/multi-device session, not the Cloud API)
- Multi-agent setup: a second agent (
household) routed via a top-levelbindings[]entry:{type: "route", agentId: "household", match: {channel: "whatsapp", accountId: "ferdinand"}}
Steps to reproduce
- Link a WhatsApp Business account via
openclaw channels login --channel whatsapp --account <id>(QR). - Confirm DM works: message the linked number directly — pairs via
dmPolicy: pairing, replies correctly.gateway call healthshowslastInboundAtpopulated,messagesHandledincrementing. - Add the linked number to a WhatsApp group as a normal member.
- Send a message in that group.
- Check
openclaw directory groups list --channel whatsapp --account <id> --limit 50 --json→ returns[]. - Check
gateway call health --jsonfor that account →lastInboundAt: null, unchanged. - On the sending phone, check the message's delivery info for the linked number specifically → shows delivered / read (double-grey then blue ticks), confirming WhatsApp did deliver it to that device.
What was ruled out
groupPolicysetting: tested all three values (disabled,allowlistwith emptygroupAllowFrom, andopen/no filter at all). Same null result in every case — including fullyopen, which should bypass all filtering.- Stale/interrupted session state: fully logged out (
channels logout) and relinked from scratch via a fresh QR pairing. Same result on the new session. - Plugin/gateway version: reproduced on both
2026.6.11and, after updating,2026.7.1(gateway core) with the plugin explicitly reinstalled at2026.7.1too. - Config/binding mistake: the account-level binding routes correctly for DMs (same account, same binding path), so the routing config itself is not the issue — it's specifically group-type messages that never arrive at the inbound handler.
Hypothesis (unconfirmed)
WhatsApp's newer privacy feature addresses group participants via an LID (@lid) identity rather than the plain phone-number JID (@s.whatsapp.net) used for DMs. This account's self-identity has both (from gateway call health): 32456872514@s.whatsapp.net and LID 33986831237279@lid. Given DMs (JID-addressed) work perfectly and only group messages (which involve LID-based participant addressing) silently fail to register, a parsing/routing gap specific to LID-addressed group messages seems like the most likely root cause — though this wasn't confirmed against the plugin's source directly.
Impact
WhatsApp group support is effectively non-functional for this setup — the provider reports healthy/connected the whole time, so there's no error surfaced anywhere; it just silently never sees group traffic.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
kaluyckx commentedon Jul 14, 2026
Update: after upgrading both the gateway core AND the
@openclaw/whatsappplugin to 2026.7.1 (the plugin needs an explicitplugins install @openclaw/whatsapp --force— the gateway image update alone does not bump it), group ingestion works. Debug logs on 2026.7.1 showOwn LID session created successfullyfollowed byHydrated N participating groups on connect, and group messages now reach the policy layer correctly. So this appears to have been the LID-session gap in 2026.6.11, already fixed in 2026.7.1.Two residual notes for maintainers:
openclaw directory groups list --channel whatsappstill returns[]even after group hydration and successfully processed group messages — the directory store never populates. We had to extract the group JID from the baileys sender-key filenames incredentials/whatsapp/<account>/. That part still looks like a real (smaller) bug.Feel free to retitle/narrow this issue to the directory-listing bug, or close if tracked elsewhere.
kaluyckx commentedon Jul 14, 2026
Correction to my earlier comment: 2026.7.1 did NOT fully fix this. Group ingestion regressed again minutes after pairing. Much more precise diagnostics now:
Definitive symptom: group messages reach the socket and are decrypted — the libsignal sender-key ratchet file (
credentials/whatsapp/<account>/sender-key-<groupJid>--<senderLid>--N.json) advances its mtime at the exact moment each group message is sent — but the plugin's message handling never fires: the web-heartbeat'smessagesHandledstays 0 andlastInboundAtstays null. No log output at any level. DMs on the same account/connection work perfectly throughout.The one time it worked: in the ~1 minute window immediately after a fresh QR pairing, a group message DID reach the policy layer (logged
Blocked group message (groupPolicy: allowlist, no groupAllowFrom)). Every connection after that: silent void, while sender-key ratchets keep advancing.Ruled out since my last comment:
open,allowlistwith the group JID allowed, anddisabled)doctor --fixmoved old channel-level settings into a new account literally nameddefaultalongside the real one — two providers then fight over one linked session ([whatsapp:default] health-monitor: restarting (reason: stopped)+connection errored). Removing the phantom account fixed the connection instability but not group ingestion. This migration bug is probably worth its own issue.Hypothesis: whatever group-context setup happens at pairing time (LID mapping / group metadata / app-state sync) is not re-established on subsequent socket connects, and group messages whose context is missing are dropped after decryption without any logging. A debug-level log line on that drop path would have saved many hours.
Happy to run any diagnostics on my deployment — this reproduces 100% reliably.
kaluyckx commentedon Jul 14, 2026
RESOLVED on my deployment — confirmed root cause + working local workaround.
Root cause of groups-silently-dead-while-DMs-work: the plugin's socket identifies as
browser: ["openclaw", "cli", VERSION]withsyncFullHistory: false(dist/session-*.js). With a non-Desktop browser identity, WhatsApp's servers stop pushing group messages to the companion device shortly after pairing (matching the ~1-minute post-pairing window where groups briefly worked). Nothing ever reachesmessages.upsertfor@g.us, so nothing is logged — while sender-key ratchets still advance, which misleadingly suggests local processing. Same class as #57989.Working fix (patched locally in dist):
browser: ["Mac OS", "Desktop", "10.15.7"](Baileys'Browsers.macOS("Desktop")), keepsyncFullHistory: false, then re-pair (the identity registers at pairing; on the old pairing the changed identity causes a 428 setup loop). Note:syncFullHistory: truemade QR login fail outright pre-pairing ("Non-Error rejection") — do not combine.After re-pairing with the Desktop identity: group messages arrive reliably,
Hydrated N participating groups on connectruns on every reconnect (not just post-pairing), and it survives gateway restarts. Verified end-to-end with agent replies in the group.Suggestion for maintainers: make the browser identity configurable (or default to a Desktop identity), and add a debug log on the WA-server-side no-group-push condition if detectable. Happy to PR if useful.
clawsweeper commentedon Jul 14, 2026
Codex review: this still needs some work.
Summary
Keep open: this issue documents sustained group-message loss on official releases, and a maintainer recently designated it as the place to collect related findings; current main does not establish a fix.
Reproducibility: The official-release observations and successful local intervention are useful evidence, but unchanged socket configuration and mocked event tests do not provide a high-confidence current-main reproduction.
Next step
A WhatsApp owner should compare sustained group and DM socket events on current main across reconnects and verify existing-pairing compatibility before selecting an identity repair.
Review details
Best possible solution:
Restore sustained group intake through the plugin's existing connection owner while preserving established pairings and access controls.
Do we have a high-confidence way to reproduce the issue?
The official-release observations and successful local intervention are useful evidence, but unchanged socket configuration and mocked event tests do not provide a high-confidence current-main reproduction.
Is this the best way to solve the issue?
Investigate the Desktop-identity workaround with controlled linked-device comparisons before changing defaults; a new configuration option is not yet justified.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 0f9c51e858ae.
Label changes
Label changes:
No label changes.
Label justifications:
P1: The report describes sustained silent failure of an existing WhatsApp group workflow while DMs and connection health appear normal.impact:message-loss: Group messages reportedly never reach agent intake despite delivery indications on the sending phone.Evidence reviewed
Acceptance criteria:
What I checked:
extensions/whatsapp/src/session.ts:239, 0f9c51e858ae)extensions/whatsapp/src/inbound/group-metadata-cache.ts:245, 0f9c51e858ae)extensions/whatsapp/src/directory-config.ts:89, 0f9c51e858ae)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 27, 2026, 6:50 AM ET / 10:50 UTC.
27 remaining items
openclaw-barnacle commentedon Oct 11, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.