Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(composio): give routing test a persistent storage backend

Steven Enamakel65cddec541ac
diff --git a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs
index 46b16241cd..e9c4d5d6eb 100644
--- a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs
@@ -151,6 +151,9 @@ async fn execute_tool_per_call_factory_means_no_baked_client() {
config.config_path = tmp.path().join("config.toml");
config.workspace_dir = tmp.path().join("workspace");
std::fs::create_dir_all(&config.workspace_dir).expect("create workspace dir");
+ // The scope-preference read goes through workspace storage; the default
+ // test backend is in-memory and fenced, so give this workspace a real one.
+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
config.composio.mode = crate::config::schema::COMPOSIO_MODE_DIRECT.to_string();
// No api_key here — direct-mode factory must reject.
config.save().await.expect("save fake config to disk");