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
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
401 Unauthorizedwithconflict: device_removederrorsRelated Baileys issues
Fixes available on Baileys master (unreleased)
There are 63+ commits on
mastersincerc.9with relevant fixes:Attempted workaround
Tried replacing Baileys with
github:WhiskeySockets/Baileys#masterdirectly in the workspace, but thelibsignaldependency path resolution breaks under pnpm's phantom store structure:This needs to be integrated at the OpenClaw build level.
Request
Please bump
@whiskeysockets/baileysto a version that includes the fixes above (either a new rc or direct master pin with proper dependency resolution).Environment