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
fix(agent): reformat integration prelude and test code
Steven Enamakel02f10bfa7605
diff --git a/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs b/crates/openhuman-core/src/agent/session_host/prelude_integrations.rsindex 4997425184..8f75362cef 100644--- a/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs+++ b/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs@@ -104,7 +104,10 @@ impl OpenHumanTurnPrelude {let skills_changed = self.drain_host_events();let config = match self.runtime_config.clone() {Some(config) => Some(config),- None => crate::config::Config::load_or_init().await.ok().map(Arc::new),+ None => crate::config::Config::load_or_init()+ .await+ .ok()+ .map(Arc::new),};if let Some(config) = config.as_deref() {// An expired cache is refetched rather than skipped, so a@@ -120,7 +123,9 @@ impl OpenHumanTurnPrelude {.unwrap_or_else(std::sync::PoisonError::into_inner);let current_slugs: std::collections::HashSet<_> =current.iter().map(|item| item.toolkit.clone()).collect();- mutable.announced_integrations.retain(|slug| current_slugs.contains(slug));+ mutable+ .announced_integrations+ .retain(|slug| current_slugs.contains(slug));mutable.pending_integration_announcement.retain(|slug| current_slugs.contains(slug));diff --git a/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rs b/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rsindex c5e2bba382..f0a5e69c3b 100644--- a/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rs@@ -63,12 +63,8 @@ fn a_live_action_is_not_rebuilt_from_the_record() {integration("gmail", true, Vec::new()),integration("slack", true, Vec::new()),];- let live: Vec<Box<dyn Tool>> = rehydrate_integration_actions(- &[spec("GMAIL_SEND_EMAIL")],- &[],- &integrations,- true,- );+ let live: Vec<Box<dyn Tool>> =+ rehydrate_integration_actions(&[spec("GMAIL_SEND_EMAIL")], &[], &integrations, true);let rebuilt = rehydrate_integration_actions(&recorded, &live, &integrations, true);let names: Vec<&str> = rebuilt.iter().map(|tool| tool.name()).collect();assert_eq!(names, vec!["SLACK_SEND_MESSAGE"]);