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/agent/tinyagents/middleware_tests.rs,crates/openhuman
Steven Enamakel53a497c72bc0
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rsindex 2f18703a17..15777a2670 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs@@ -331,14 +331,15 @@ fn body_failure_result(name: &str, extra: serde_json::Value) -> TaToolResult {// ── EmbedderToolHooksMiddleware ──────────────────────────────────────────+/// One recorded post-tool notification: tool name, args, success flag, duration.+type PostToolRecord = (String, serde_json::Value, Option<bool>, Option<u64>);+/// Records lifecycle notifications for a test hook, optionally vetoing every/// pre-tool call so the veto path can be exercised.struct RecordingToolHook {name: &'static str,pre: std::sync::Arc<std::sync::Mutex<Vec<(String, serde_json::Value)>>>,- post: std::sync::Arc<- std::sync::Mutex<Vec<(String, serde_json::Value, Option<bool>, Option<u64>)>>,- >,+ post: std::sync::Arc<std::sync::Mutex<Vec<PostToolRecord>>>,veto: bool,}@@ -376,9 +377,7 @@ impl crate::agent::hooks::ToolHook for RecordingToolHook {fn embedder_hook_mw(pre: std::sync::Arc<std::sync::Mutex<Vec<(String, serde_json::Value)>>>,- post: std::sync::Arc<- std::sync::Mutex<Vec<(String, serde_json::Value, Option<bool>, Option<u64>)>>,- >,+ post: std::sync::Arc<std::sync::Mutex<Vec<PostToolRecord>>>,veto: bool,) -> EmbedderToolHooksMiddleware {EmbedderToolHooksMiddleware::new(vec![std::sync::Arc::new(RecordingToolHook {diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rsindex f327c8248c..ddcd251af8 100644--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs@@ -93,10 +93,13 @@ fn find<'a>(tools: &'a [Box<dyn Tool>], name: &str) -> &'a dyn Tool {/// This is not a contrived shape. Every `delegate_*` tool is synthesised into/// `OpenHumanSessionHost::synthesized_tools`, a different `Arc` from the durable registry/// (#6145), and seven delegates were already packed.+/// A shared, immutable tool registry.+type ToolRegistry = Arc<Vec<Box<dyn Tool>>>;+fn split_registries(name: &'static str,level: PermissionLevel,-) -> (Arc<Vec<Box<dyn Tool>>>, Arc<Vec<Box<dyn Tool>>>) {+) -> (ToolRegistry, ToolRegistry) {let mut durable: Vec<Box<dyn Tool>> = Vec::new();append_pack_tools(&mut durable);let durable = Arc::new(durable);diff --git a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rsindex e6b3488e19..da5efbd07d 100644--- a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs+++ b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs@@ -1,4 +1,4 @@-use std::path::PathBuf;+use std::path::{Path, PathBuf};use super::persist_delivered_reply;use crate::memory::agent::memory_loader::MemoryCitation;