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.

tests: give the autonomy approval tests the smart field from smart-approvals

Lin (kwant bot)6dea10f1aa30
diff --git a/tests/approvals_off_test.rs b/tests/approvals_off_test.rs
index 355f681a..667f0841 100644
--- a/tests/approvals_off_test.rs
+++ b/tests/approvals_off_test.rs
@@ -275,6 +275,7 @@ async fn an_always_ask_turn_asks_even_with_approvals_off() {
tool: "Bash".into(),
arguments: json!({"command": "touch y"}),
builtin: None,
+ smart: None,
};
put(&e, &format!("/api/kwants/{}/approvals", e.bot.id), "ask").await;
assert_eq!(approver.decide(req).await, want, "always_ask {always_ask}");
diff --git a/tests/late_approval_test.rs b/tests/late_approval_test.rs
index 0f0270bb..6bea88c8 100644
--- a/tests/late_approval_test.rs
+++ b/tests/late_approval_test.rs
@@ -33,6 +33,7 @@ fn request(env: &Env, args: Value) -> ToolApprovalRequest {
tool: "Bash".into(),
arguments: args,
builtin: None,
+ smart: None,
}
}