fix(channels): retain scheduled results across pre-send outages

This commit is contained in:
Xubin Ren committed 2026-10-17 12:49:03 +08:00
1 parent 61db036cee
commit 508cedff31
31 files changed
+768 -61

No files matched your search

+2 -4
View File
@@ -25,6 +25,7 @@ from rich.markup import escape
from rich.panel import Panel
from rich.text import Text
from nanobot.bus.delivery import ChannelNotReadyError
from nanobot.bus.events import OutboundMessage
from nanobot.bus.outbound_events import ProgressEvent
from nanobot.bus.queue import MessageBus
@@ -2446,10 +2447,7 @@ class FeishuChannel(BaseChannel):
):
return
if not self._client:
if msg.metadata.get(PAIRING_CODE_META_KEY):
raise RuntimeError("Feishu client is not ready to send the pairing reply")
self.logger.warning("client not initialized")
return
raise ChannelNotReadyError("Feishu client is not ready to send the reply")
try:
receive_id_type = "chat_id" if msg.chat_id.startswith("oc_") else "open_id"