From 6bb438de6eceaa7dfddfa5f0b617e15422d7eb5d Mon Sep 17 00:00:00 2001 From: "Abiba (pi)" Date: Sat, 27 Jun 2026 11:34:14 +0000 Subject: [PATCH] fix(zulip): remove invalid kwargs from SendResult calls SendResult only accepts: success, message_id, error, raw_response, retryable. The adapter was passing platform=, chat_id=, and metadata= which are not valid fields, causing TypeError on every send attempt. This was the error Tanko was showing in Zulip: 'SendResult.__init__() got an unexpected keyword argument "platform"' --- plugins/platforms/zulip/adapter.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/platforms/zulip/adapter.py b/plugins/platforms/zulip/adapter.py index 66b5a29..9cc7b50 100644 --- a/plugins/platforms/zulip/adapter.py +++ b/plugins/platforms/zulip/adapter.py @@ -765,10 +765,7 @@ class ZulipAdapter(BasePlatformAdapter): self._health_stats["send_count"] += 1 return SendResult( success=True, - platform="zulip", - chat_id=chat_id, message_id=msg_id, - metadata={"placeholder": True}, ) # Send actual content @@ -777,16 +774,12 @@ class ZulipAdapter(BasePlatformAdapter): self._health_stats["send_count"] += 1 return SendResult( success=True, - platform="zulip", - chat_id=chat_id, message_id=str(result["id"]), ) self._health_stats["send_errors"] += 1 return SendResult( success=False, - platform="zulip", - chat_id=chat_id, error="Failed to send message", )