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): wait for queued reports before terminal sync

Sean Ferguson6fb3ace35052
diff --git a/host/tests/team_e2e.rs b/host/tests/team_e2e.rs
index 69bd7155..cd1a785f 100644
--- a/host/tests/team_e2e.rs
+++ b/host/tests/team_e2e.rs
@@ -270,6 +270,10 @@ async fn user_report_queued_behind_an_ask_is_delivered_in_the_recipient_chat() {
let permission = host.wait_for(&reviewer, |e| e["kind"] == "permission" && e["data"]["status"] == "pending").await;
host.call("send", json!({"botId": reviewer, "text": "REPORT"})).await;
host.call("respondPermission", json!({"entryId": permission["id"], "optionId": "allow"})).await;
+ host.wait_for(&reviewer, |e| {
+ e["kind"] == "agent" && e["data"]["final"] == true && e["data"]["text"] == "Second report for the user"
+ })
+ .await;
let sync = host.wait_finished().await;
assert_recipient_reports(&sync, &reviewer);
assert!(sync["entries"].as_array().unwrap().iter().any(|e| {
@@ -297,6 +301,10 @@ async fn independent_report_queued_behind_an_ask_gets_guidance_in_the_reused_ses
.await;
host.wait_for(&messenger, |e| e["kind"] == "agent" && e["data"]["final"] == true).await;
host.call("respondPermission", json!({"entryId": permission["id"], "optionId": "allow"})).await;
+ host.wait_for(&reviewer, |e| {
+ e["kind"] == "agent" && e["data"]["final"] == true && e["data"]["text"] == "Second report for the user"
+ })
+ .await;
let sync = host.wait_finished().await;
assert_recipient_reports(&sync, &reviewer);
let prompts = host.fixture_log("reviewer", "prompts.jsonl");