Fixes
WhatsApp 405 Connection Failure on fresh pairing
Two issues prevented WhatsApp QR pairing from working:
-
Platform rejection – Baileys
7.0.0-rc13sendsPlatform.WEBwhich WhatsApp has been rejecting since Feb 2026. Fixed by patching Baileysvalidate-connection.jsto usePlatform.MACOSviapatch-package(applied automatically duringnpm installviapostinstallhook). -
Stale WA version –
fetchLatestBaileysVersion()returns2.3000.1035194821(Feb 2026). WhatsApp now requires a current version (2.3000.1044015310as of Jul 28). Fixed by hardcoding the latest known version with a guard to only accept fetched versions that are actually newer.
Infrastructure
- Added
patches/directory to Docker build context sopatch-packagecan apply the Baileys fix during image build. patches/@whiskeysockets+baileys+7.0.0-rc13.patch: changesPlatform.WEB→Platform.MACOS.
How to verify
- Open the WhatsApp settings page
- Click "Connect WhatsApp"
- The QR code should appear and remain visible for scanning