The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/memory/tool_writes_tests.rs,crates/openhuman-core/src
Steven Enamakel88e600bd5334
diff --git a/crates/openhuman-core/src/memory/tool_writes_tests.rs b/crates/openhuman-core/src/memory/tool_writes_tests.rsindex 44adbf1cdc..2d94c5a51d 100644--- a/crates/openhuman-core/src/memory/tool_writes_tests.rs+++ b/crates/openhuman-core/src/memory/tool_writes_tests.rs@@ -131,12 +131,7 @@ async fn restart_drains_scrubbed_learnings_and_ordered_forgetting() {).unwrap();let id = ack["id"].as_str().unwrap();- enqueue(- &config,- &json!({"action":"forget","ids":[id]}),- &facts,- )- .unwrap();+ enqueue(&config, &json!({"action":"forget","ids":[id]}), &facts).unwrap();// A fresh config and engine sees only the durable file from before restart.let restarted = config_in(&tmp);let engine = bind_reference(&restarted);@@ -465,7 +460,10 @@ async fn model_supplied_forget_reach_cannot_remove_another_identitys_item() {&json!({"action":"forget","ids":[id],"reach":{"at":"","inherit":true,"descendants":true}}),&confined,);- assert!(matches!(rejected, Err(tinymemory_api::Error::InvalidRequest(_))));+ assert!(matches!(+ rejected,+ Err(tinymemory_api::Error::InvalidRequest(_))+ ));assert!(read(&config.workspace_dir).unwrap().is_empty());enqueue(&config, &json!({"action":"forget","ids":[id]}), &confined).unwrap();assert_eq!(drain(&config).await, 1);diff --git a/crates/openhuman-core/src/memory/tools.rs b/crates/openhuman-core/src/memory/tools.rsindex 4b86902b88..fb6ba9b03c 100644--- a/crates/openhuman-core/src/memory/tools.rs+++ b/crates/openhuman-core/src/memory/tools.rs@@ -176,8 +176,7 @@ impl MemoryTool {if let Some(reach) = reach {scope.reach = Some(reach);}- })- {+ }) {return ToolResult::error(render_error(error));}let engine = match super::engine::resolve(&self.config).engine() {diff --git a/crates/openhuman-core/src/memory/tools_tests.rs b/crates/openhuman-core/src/memory/tools_tests.rsindex bba52e6060..858264e31c 100644--- a/crates/openhuman-core/src/memory/tools_tests.rs+++ b/crates/openhuman-core/src/memory/tools_tests.rs@@ -355,7 +355,11 @@ async fn fetch_with_an_undeclared_mode_is_unsupported() {).await;assert!(result.is_error);- assert!(text(&result).contains("INVALID_REQUEST"), "{}", text(&result));+ assert!(+ text(&result).contains("INVALID_REQUEST"),+ "{}",+ text(&result)+ );assert!(text(&result).contains("keyword"), "{}", text(&result));assert!(text(&result).contains("hybrid"), "{}", text(&result));}@@ -620,7 +624,11 @@ async fn learn_returns_on_accept_and_says_recall_may_lag() {async fn a_failed_learn_is_reported_to_the_model() {let tmp = tempfile::tempdir().unwrap();let config = config_in(&tmp);- std::fs::write(config.workspace_dir.join("memory"), "blocks outbox directory").unwrap();+ std::fs::write(+ config.workspace_dir.join("memory"),+ "blocks outbox directory",+ )+ .unwrap();let learned = run_action(&ambient(),