feat(webui): show when the agent picks up queued messages (#6719)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-19 16:03:16 +08:00
1 parent 3025a01cf0
commit b453de9cf6
26 files changed
+642 -29

No files matched your search

+5 -5
View File
@@ -102,11 +102,11 @@ async def test_session_message_text_is_not_dispatched_as_a_slash_command(
loop: AgentLoop,
) -> None:
loop.sessions.save(loop.sessions.get_or_create("telegram:target"))
await loop._dispatch_inbound(_message("/stop"))
await asyncio.wait_for(
asyncio.gather(*loop._active_tasks["telegram:target"]), timeout=2,
)
response = await asyncio.wait_for(loop.bus.consume_outbound(), timeout=2)
# Bound hangs without imposing a tight deadline on SQLite checkpoint writes.
async with asyncio.timeout(10):
await loop._dispatch_inbound(_message("/stop"))
await asyncio.gather(*loop._active_tasks["telegram:target"])
response = loop.bus.outbound.get_nowait()
assert response.content == "Reviewed"
loop.provider.chat_stream_with_retry.assert_awaited_once()