From ecc37be1beaac4ebc0ff2ba2be8d39de8ea8f2b6 Mon Sep 17 00:00:00 2001 From: Pheby Date: Fri, 20 Nov 2026 18:05:38 +0000 Subject: [PATCH] =?UTF-8?q?fix(pheby):=20drop=20event=20metadata=20?= =?UTF-8?q?=E2=80=94=20new=20gateway=20refuses=20non-empty=20native=20meta?= =?UTF-8?q?data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/pheby/hermes_bridge.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/pheby/hermes_bridge.py b/plugin/pheby/hermes_bridge.py index c1918fc..6807b28 100644 --- a/plugin/pheby/hermes_bridge.py +++ b/plugin/pheby/hermes_bridge.py @@ -627,7 +627,10 @@ async def send_chat(server: Any, conversation_id: str, text: str, else MessageType.TEXT)), source=source, message_id=message_id, - metadata={"pheby_run_id": run_id}, + # No metadata: the gateway's native-admission validation only accepts + # empty metadata on the native path (anything non-empty is refused as + # invalid_params unless it is WhatsApp's own native payload), and + # nothing in the plugin reads event metadata back. media_urls=media_urls, media_types=media_types, media_text_inlined=media_text_inlined,