Skip to content

armgit / kwant

Public Imported from GitHub
0

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.

concierge_test: B's own routed note isn't a hand-back

Lin (kwant bot)87279a45628f
diff --git a/tests/concierge_test.rs b/tests/concierge_test.rs
index 780e8955..af1d2a81 100644
--- a/tests/concierge_test.rs
+++ b/tests/concierge_test.rs
@@ -388,7 +388,8 @@ async fn a_hand_back_passes_on_the_message_it_answers_not_the_newest() {
assert!(state.db.handed_back(&a).await.unwrap() && !state.db.handed_back(&b).await.unwrap());
let prompts = std::fs::read_to_string(fake_cli().join("prompts.log")).unwrap_or_default();
assert!(prompts.contains(&format!("{a_text}\n\n(kwant routing note: Scriptwriter handed")), "the hand-back turn's prompt is A's text");
- assert!(!prompts.contains("sitemap\n\n(kwant routing note"), "B was never handed on");
+ // B's own turn has the routed note; only a hand-back says who handed it
+ assert!(!prompts.contains("sitemap\n\n(kwant routing note: Scriptwriter handed"), "B was never handed on");
// Still one hop for A
let token = answering_token(&state, &atlas, &general, Some(&a)).await;