Skip to content

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

fix(composio): correct test assertion for tool execution response

Steven Enamakel42c5a4ee94c2
diff --git a/crates/openhuman-core/src/integrations/composio/client_tests.rs b/crates/openhuman-core/src/integrations/composio/client_tests.rs
index 43926c9b75..4d8222b695 100644
--- a/crates/openhuman-core/src/integrations/composio/client_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/client_tests.rs
@@ -538,7 +538,10 @@ async fn direct_reads_go_through_the_hosts_runtime_proxy() {
set_runtime_proxy_config(ProxyConfig {
enabled: true,
http_proxy: Some(proxy.clone()),
- scope: ProxyScope::OpenHuman,
+ // Only Composio's traffic: the runtime proxy is process-global, and
+ // every other test's loopback requests must stay direct meanwhile.
+ scope: ProxyScope::Services,
+ services: vec!["tool.composio".into()],
..ProxyConfig::default()
});
let through = direct_list_connections(&config, &tool).await;
@@ -547,7 +550,8 @@ async fn direct_reads_go_through_the_hosts_runtime_proxy() {
enabled: true,
http_proxy: Some(proxy),
no_proxy: vec!["127.0.0.1".into()],
- scope: ProxyScope::OpenHuman,
+ scope: ProxyScope::Services,
+ services: vec!["tool.composio".into()],
..ProxyConfig::default()
});
let bypassed_proxied_before = proxied.try_iter().count();