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.

Mission Control: the force_paths test runs the task directly, not on the stand-in CLI

Lin (kwant bot)706758cb8af7
diff --git a/tests/mission_checkpoints_test.rs b/tests/mission_checkpoints_test.rs
index d6d60d06..2ca0bb84 100644
--- a/tests/mission_checkpoints_test.rs
+++ b/tests/mission_checkpoints_test.rs
@@ -349,7 +349,11 @@ async fn a_restore_brings_back_the_tasks_files_and_can_itself_be_undone() {
#[tokio::test]
async fn a_force_path_the_preview_does_not_list_is_refused_and_writes_nothing() {
let e = setup().await;
- let (_mid, tid, dir) = cli_mission(&e).await;
+ let (mid, ids) = mission(&e, &e.bot.id, json!([{"title": "A", "owner": e.bot.id}])).await;
+ let (tid, dir) = (ids[0].clone(), folder(&e, &mid).await);
+ std::fs::write(dir.join("a.txt"), "original").unwrap();
+ std::fs::write(dir.join("keep.txt"), "untouched").unwrap();
+ run(&e, &mid, &tid, &[("a.txt", Some("changed"))]).await;
let cid = id(of_kind(&checkpoints(&e, &tid).await, "before_run")[0]);
let p = preview(&e, &tid, &cid).await;
assert_eq!(p["changes"], json!([{"path": "a.txt", "action": "overwrite"}]), "{p}");