Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

test(host): say where streaming replies are checked for unread

leepokai6b7628b239b7
diff --git a/host/tests/routine_unread_e2e.rs b/host/tests/routine_unread_e2e.rs
index e4b07c4f..126c219d 100644
--- a/host/tests/routine_unread_e2e.rs
+++ b/host/tests/routine_unread_e2e.rs
@@ -57,8 +57,9 @@ async fn a_routine_result_and_a_followup_each_become_read_without_hidden_unreads
host.call("markRead", json!({"botId": bot})).await;
assert_eq!(unread(&host, &bot).await, 0);
+ // `reply` returns once the reply is final; that a streaming one isn't unread yet is
+ // `store::bots`' `rev_sync_and_unread`.
host.reply(&bot, "FOLLOWUP").await;
- // Streaming the text does not make it unread until the host finalizes the reply.
assert_eq!(unread(&host, &bot).await, 1);
host.call("markRead", json!({"botId": bot})).await;
assert_eq!(unread(&host, &bot).await, 0);