feat(webui): add lightweight session messaging via mentions
This commit is contained in:
1 parent
2bdb11eeba
commit
0e184965e8
76 files changed
+8297
-658
No files matched your search
@@ -15,6 +15,21 @@ async def test_message_tool_returns_error_when_no_target_context() -> None:
|
||||
assert result == "Error: No target channel/chat specified"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_message_tool_preserves_legacy_positional_channel_arguments() -> None:
|
||||
sent: list[OutboundMessage] = []
|
||||
|
||||
async def send(message: OutboundMessage) -> None:
|
||||
sent.append(message)
|
||||
|
||||
tool = MessageTool(send_callback=send)
|
||||
await tool.execute("hello", "telegram", "chat-1")
|
||||
|
||||
assert [(message.channel, message.chat_id, message.content) for message in sent] == [
|
||||
("telegram", "chat-1", "hello")
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize(
|
||||
"bad",
|
||||
|
||||
Reference in new issue
Block a user