openclaw - 💡(How to fix) Fix [Bug]: whatsapp grups [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#57985Fetched 2026-04-08 01:55:16
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×2closed ×1commented ×1locked ×1

Bug Report: WhatsApp linked device does not receive group messages (DMs work)

OpenClaw v2026.3.28, Ubuntu 24.04, Node v22.22.1

SYMPTOM: After linking a WhatsApp Web companion device, the gateway receives DMs but never receives group messages. messages.upsert never fires for group JIDs. Sending TO groups works fine.

REPRODUCTION:

  1. openclaw channels login --channel whatsapp (fresh QR link)
  2. Send a DM → arrives correctly
  3. Send/receive in any group → zero inbound events in logs

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

ROOT CAUSE (suspected): createWaSocket() does not call groupFetchAllParticipating() on connect, and init queries don't establish group Sender Key sessions. Combined with syncFullHistory:false and non-Desktop browser string, newly linked devices never get group message push.

SUGGESTED FIX: Call sock.groupFetchAllParticipating() after connection open in the WhatsApp provider, or expose config for syncFullHistory/supportGroupHistory.

Root Cause

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

Fix Action

Fix / Workaround

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Bug Report: WhatsApp linked device does not receive group messages (DMs work)

OpenClaw v2026.3.28, Ubuntu 24.04, Node v22.22.1

SYMPTOM: After linking a WhatsApp Web companion device, the gateway receives DMs but never receives group messages. messages.upsert never fires for group JIDs. Sending TO groups works fine.

REPRODUCTION:

  1. openclaw channels login --channel whatsapp (fresh QR link)
  2. Send a DM → arrives correctly
  3. Send/receive in any group → zero inbound events in logs

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

ROOT CAUSE (suspected): createWaSocket() does not call groupFetchAllParticipating() on connect, and init queries don't establish group Sender Key sessions. Combined with syncFullHistory:false and non-Desktop browser string, newly linked devices never get group message push.

SUGGESTED FIX: Call sock.groupFetchAllParticipating() after connection open in the WhatsApp provider, or expose config for syncFullHistory/supportGroupHistory.

Steps to reproduce

Bug Report: WhatsApp linked device does not receive group messages (DMs work)

OpenClaw v2026.3.28, Ubuntu 24.04, Node v22.22.1

SYMPTOM: After linking a WhatsApp Web companion device, the gateway receives DMs but never receives group messages. messages.upsert never fires for group JIDs. Sending TO groups works fine.

REPRODUCTION:

  1. openclaw channels login --channel whatsapp (fresh QR link)
  2. Send a DM → arrives correctly
  3. Send/receive in any group → zero inbound events in logs

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

ROOT CAUSE (suspected): createWaSocket() does not call groupFetchAllParticipating() on connect, and init queries don't establish group Sender Key sessions. Combined with syncFullHistory:false and non-Desktop browser string, newly linked devices never get group message push.

SUGGESTED FIX: Call sock.groupFetchAllParticipating() after connection open in the WhatsApp provider, or expose config for syncFullHistory/supportGroupHistory.

Expected behavior

Bug Report: WhatsApp linked device does not receive group messages (DMs work)

OpenClaw v2026.3.28, Ubuntu 24.04, Node v22.22.1

SYMPTOM: After linking a WhatsApp Web companion device, the gateway receives DMs but never receives group messages. messages.upsert never fires for group JIDs. Sending TO groups works fine.

REPRODUCTION:

  1. openclaw channels login --channel whatsapp (fresh QR link)
  2. Send a DM → arrives correctly
  3. Send/receive in any group → zero inbound events in logs

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

ROOT CAUSE (suspected): createWaSocket() does not call groupFetchAllParticipating() on connect, and init queries don't establish group Sender Key sessions. Combined with syncFullHistory:false and non-Desktop browser string, newly linked devices never get group message push.

SUGGESTED FIX: Call sock.groupFetchAllParticipating() after connection open in the WhatsApp provider, or expose config for syncFullHistory/supportGroupHistory.

Actual behavior

Bug Report: WhatsApp linked device does not receive group messages (DMs work)

OpenClaw v2026.3.28, Ubuntu 24.04, Node v22.22.1

SYMPTOM: After linking a WhatsApp Web companion device, the gateway receives DMs but never receives group messages. messages.upsert never fires for group JIDs. Sending TO groups works fine.

REPRODUCTION:

  1. openclaw channels login --channel whatsapp (fresh QR link)
  2. Send a DM → arrives correctly
  3. Send/receive in any group → zero inbound events in logs

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

ROOT CAUSE (suspected): createWaSocket() does not call groupFetchAllParticipating() on connect, and init queries don't establish group Sender Key sessions. Combined with syncFullHistory:false and non-Desktop browser string, newly linked devices never get group message push.

SUGGESTED FIX: Call sock.groupFetchAllParticipating() after connection open in the WhatsApp provider, or expose config for syncFullHistory/supportGroupHistory.

OpenClaw version

2026.3.28

Operating system

ubuntu

Install method

npm global

Model

all

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

Fix Plan

To resolve the issue of WhatsApp linked devices not receiving group messages, we need to modify the WhatsApp provider to call groupFetchAllParticipating() after the connection is open. Here are the steps:

  • Modify the WhatsApp provider to call sock.groupFetchAllParticipating() after the connection is established.
  • Optionally, expose configuration options for syncFullHistory and supportGroupHistory to allow for more control over group message handling.

Example code snippet:

// WhatsApp provider connection establishment
sock.ev.on('connection.open', () => {
  // Call groupFetchAllParticipating() after connection open
  sock.groupFetchAllParticipating();
});

Alternatively, you can also expose configuration options for syncFullHistory and supportGroupHistory:

// WhatsApp provider configuration
const whatsappConfig = {
  // ...
  syncFullHistory: true,
  supportGroupHistory: true,
};

// Use the configuration options to establish the connection
sock = createWaSocket(whatsappConfig);

Verification

To verify that the fix worked, follow these steps:

  1. Relink the WhatsApp device using the updated WhatsApp provider.
  2. Send a group message to a group that the device is a part of.
  3. Check the device's logs to see if the group message is received correctly.
  4. Verify that the messages.upsert event is fired for the group message.

Extra Tips

  • Make sure to test the fix with different group policies (e.g., "allowlist" and "open") to ensure that the issue is resolved in all scenarios.
  • Consider adding logging statements to track the execution of groupFetchAllParticipating() and the receipt of group messages to help with debugging.
  • If issues persist, try injecting groupFetchAllParticipating() after sendPresenceUpdate to hydrate the groups and see if that resolves the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Bug Report: WhatsApp linked device does not receive group messages (DMs work)

OpenClaw v2026.3.28, Ubuntu 24.04, Node v22.22.1

SYMPTOM: After linking a WhatsApp Web companion device, the gateway receives DMs but never receives group messages. messages.upsert never fires for group JIDs. Sending TO groups works fine.

REPRODUCTION:

  1. openclaw channels login --channel whatsapp (fresh QR link)
  2. Send a DM → arrives correctly
  3. Send/receive in any group → zero inbound events in logs

INVESTIGATION: • groupPolicy tested as "allowlist" and "open" — no change • Verbose mode shows zero group events at Baileys level • Standalone script with createWaSocket() + groupFetchAllParticipating() DOES receive group messages from active groups • Patching syncFullHistory:true has no effect because browser=["openclaw","cli",VERSION] doesn't trigger desktop sync path, and supportGroupHistory:false • Injecting groupFetchAllParticipating() after sendPresenceUpdate hydrates 114 groups but still no inbound • Relinking, leaving/rejoining group, waiting hours — nothing fixes it • Session that WAS receiving groups before had been running continuously for days

ROOT CAUSE (suspected): createWaSocket() does not call groupFetchAllParticipating() on connect, and init queries don't establish group Sender Key sessions. Combined with syncFullHistory:false and non-Desktop browser string, newly linked devices never get group message push.

SUGGESTED FIX: Call sock.groupFetchAllParticipating() after connection open in the WhatsApp provider, or expose config for syncFullHistory/supportGroupHistory.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING