refactor(bus): type outbound runtime events

This commit is contained in:
chengyongru
2026-07-01 20:17:00 +08:00
committed by Xubin Ren
parent f6d1dba32a
commit 5f4cfbcb16
45 changed files with 1206 additions and 741 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ from unittest.mock import MagicMock
import pytest
from nanobot.bus.events import InboundMessage, OutboundMessage
from nanobot.bus.outbound_events import ProgressEvent
from nanobot.bus.queue import MessageBus
from nanobot.channels.signal import (
SignalChannel,
@@ -1341,7 +1342,7 @@ class TestSend:
channel="signal",
chat_id="+19995550001",
content="working...",
metadata={"_progress": True},
event=ProgressEvent(content="working..."),
)
await ch.send(msg)
# Progress messages should NOT stop the typing indicator