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): compare cleared observations as JSON

leepokai9ec5dca817e8
diff --git a/host/tests/memory_e2e.rs b/host/tests/memory_e2e.rs
index bddda8a1..686707f1 100644
--- a/host/tests/memory_e2e.rs
+++ b/host/tests/memory_e2e.rs
@@ -122,7 +122,7 @@ async fn migrate_manage_backup_and_forget_without_cross_bot_reads() {
let cleared = host.call("exportMemory", json!({"botId":a})).await;
let cleared: Value = serde_json::from_str(cleared["json"].as_str().unwrap()).unwrap();
assert!(!cleared.to_string().contains("UNIQUE_SECRET_CAPTURE"));
- assert_eq!(cleared["observations"].as_array().unwrap().as_slice(), []);
+ assert_eq!(cleared["observations"], json!([]));
assert_eq!(host.call("memory", json!({"botId":a})).await["total"], 0);
// Import into another bot's isolated store, then search the source content.
host.call("importMemory", json!({"botId":b,"json":exported["json"]})).await;