fix(channels): preserve recovery order and adapter ownership

This commit is contained in:
Xubin Ren committed 2026-10-17 12:49:03 +08:00
1 parent 9c1b16b3cc
commit 182ada6825
12 files changed
+191 -29

No files matched your search

+3
View File
@@ -13,6 +13,7 @@ from pathlib import Path
from typing import Any, cast
from urllib.parse import urlparse
from nanobot.bus.delivery import ChannelNotReadyError
from nanobot.bus.events import InboundMessage, OutboundMessage
from nanobot.bus.outbound_events import ContextCompactionEvent, ProgressEvent, RetryWaitEvent
from nanobot.bus.queue import MessageBus
@@ -167,6 +168,8 @@ class LinearChannel(BaseChannel):
ephemeral=True,
)
return
if self._client is None:
raise ChannelNotReadyError("Linear HTTP client is not initialized")
body = msg.content
if msg.media:
attachments = await self._attachment_markdown(msg)