From 9cf026f6059b97bd23d0971ab105457138fda16b Mon Sep 17 00:00:00 2001 From: oliver Date: Mon, 17 Aug 2026 23:54:48 +0800 Subject: [PATCH] Fix WhatsApp Admin QR bind and show the scan prompt only after Bind. Use a current WA protocol version, start the sidecar via local tsx with inherited proxy, and stop auto-opening the QR UI on unbound connecting. Co-authored-by: Cursor --- interfaces/admin/static/index.html | 56 +++---- interfaces/admin/static/js/asset-v.js | 2 +- .../admin/static/js/i18n/messages-en.js | 7 +- .../admin/static/js/i18n/messages-zh.js | 7 +- interfaces/admin/static/js/pages/stack.js | 111 +++++++++++--- .../scripts/lib/ResolveWhatsAppProxy.ps1 | 52 +++++++ runtime/operations/scripts/whatsapp_login.ps1 | 45 +++++- runtime/operations/scripts/whatsapp_start.ps1 | 24 ++- runtime/operations/scripts/whatsapp_stop.ps1 | 10 ++ .../whatsapp_bridge/baileys_runner.ts | 144 +++++++++++++++++- runtime/operations/whatsapp_sidecar.py | 120 +++++++++++---- tests/test_whatsapp_admin_session.py | 116 ++++++++++++++ 12 files changed, 593 insertions(+), 101 deletions(-) create mode 100644 runtime/operations/scripts/lib/ResolveWhatsAppProxy.ps1 diff --git a/interfaces/admin/static/index.html b/interfaces/admin/static/index.html index 21046824..b0698406 100644 --- a/interfaces/admin/static/index.html +++ b/interfaces/admin/static/index.html @@ -5,9 +5,9 @@ oliver - - - + + +