Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
Test: wait for the busy-retry note in a teammate's mention chat (flaky on main) (#586)
Oleksandr Ivanchenkoe7c558eb3c88
diff --git a/tests/delegation_test.rs b/tests/delegation_test.rsindex 661807a7..d88906c0 100644--- a/tests/delegation_test.rs+++ b/tests/delegation_test.rs@@ -1119,8 +1119,14 @@ async fn a_teammates_mention_that_ends_on_a_busy_browser_step_parks_a_retry_in_tassert_eq!(parked.channel_id.as_deref(), Some(channel.as_str()));assert_eq!(parked.reason, "browser_busy_1");assert!(parked.prompt.contains("browser_act"), "{}", parked.prompt);- let note = channel_messages(&env, &channel).await.into_iter().find(|m| meta_kind(m).as_deref() == Some("browser_busy_retry"));- assert!(note.is_some_and(|n| n.text.contains(&lead) && n.text.contains("retry 1 of 2")), "the retry is said in the chat");+ // The note is saved right after the park (busy_retry::after_turn), so on a slow runner it can+ // still be on its way when the parked row shows up: wait for it (main CI at ad035614).+ wait_or_dump(&env, &channel, "the retry note in the chat", || async {+ channel_messages(&env, &channel).await.iter().any(|m| meta_kind(m).as_deref() == Some("browser_busy_retry"))+ })+ .await;+ let note = channel_messages(&env, &channel).await.into_iter().find(|m| meta_kind(m).as_deref() == Some("browser_busy_retry")).unwrap();+ assert!(note.text.contains(&lead) && note.text.contains("retry 1 of 2"), "the retry is said in the chat: {}", note.text);assert!(env.state.db.list_delegations(Some(&env.specialist), None, 10).await.unwrap().is_empty(), "not a delegation");}