Compare commits

...
1 Commits
Author SHA1 Message Date
Abiba (pi) 6bb438de6e 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"'
2026-06-27 11:34:14 +00:00
-7
View File
@@ -765,10 +765,7 @@ class ZulipAdapter(BasePlatformAdapter):
self._health_stats["send_count"] += 1 self._health_stats["send_count"] += 1
return SendResult( return SendResult(
success=True, success=True,
platform="zulip",
chat_id=chat_id,
message_id=msg_id, message_id=msg_id,
metadata={"placeholder": True},
) )
# Send actual content # Send actual content
@@ -777,16 +774,12 @@ class ZulipAdapter(BasePlatformAdapter):
self._health_stats["send_count"] += 1 self._health_stats["send_count"] += 1
return SendResult( return SendResult(
success=True, success=True,
platform="zulip",
chat_id=chat_id,
message_id=str(result["id"]), message_id=str(result["id"]),
) )
self._health_stats["send_errors"] += 1 self._health_stats["send_errors"] += 1
return SendResult( return SendResult(
success=False, success=False,
platform="zulip",
chat_id=chat_id,
error="Failed to send message", error="Failed to send message",
) )