Skip to content

Bump @whiskeysockets/baileys from 7.0.0-rc.9 to latest master #10491

Description

@alvarosanchezuy

Summary

The current pinned version of @whiskeysockets/baileys (7.0.0-rc.9, published Nov 21 2025) has several well-documented connection stability bugs that cause WhatsApp linked devices to silently disconnect shortly after pairing.

Symptoms observed

  • QR scan completes and credentials are saved, but the session drops within minutes
  • 401 Unauthorized with conflict: device_removed errors
  • Linked device never appears in WhatsApp > Linked Devices on the phone
  • Silent listener death (provider starts but never reaches "Listening" state on restart)
  • These reproduce consistently across fresh auth states and multiple re-link attempts

Related Baileys issues

  • #2248 — 401 + device_removed after QR scan
  • #2203 — Device logs out after minutes
  • #2306 — Pairing not shown in Linked Devices (rc.9)
  • #2110 — Session rejected by phone

Fixes available on Baileys master (unreleased)

There are 63+ commits on master since rc.9 with relevant fixes:

PR Description
#2294 Send unified session (matches official WA Web client behavior)
#2264 Fix connection showing "Online" but disconnected
#2307 Detect identity key changes and reset sessions
#2182 Resolve race condition in decodeFrame handling
#2160 Fix critical memory leak in event buffer
#2151 Fix memory leak in makeMutex
#2137 Mutex redesign — isolate event processing

Attempted workaround

Tried replacing Baileys with github:WhiskeySockets/Baileys#master directly in the workspace, but the libsignal dependency path resolution breaks under pnpm's phantom store structure:

ERR_MODULE_NOT_FOUND: Cannot find module '.../node_modules/libsignal/src/curve'

This needs to be integrated at the OpenClaw build level.

Request

Please bump @whiskeysockets/baileys to a version that includes the fixes above (either a new rc or direct master pin with proper dependency resolution).

Environment

  • OpenClaw: 2026.2.4 (c75275f)
  • Node: 22.22.0
  • OS: Ubuntu 24.04.3 LTS
  • Baileys: 7.0.0-rc.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions