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(tests): use config-scoped registry lookup in MCP client tool test\n\nThe test `tool_registry_entries_include_connected_mcp_client_tools` was calling the ambient `registry_entries()` function, which resolves through the process default host. When other test cases in the same binary open a second host first, the ambient lookup returns `None` for the connected client tools. The fix switches to `registry_entries_for_config(&config)`, which correctly resolves through the config-scoped host that was used to establish the connection.\n\nAuto-committed-on: dragonfly\n
Steven Enamakel2b51e50179fb
diff --git a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rsindex 44fb50a4f4..c5028977e1 100644--- a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs@@ -37,7 +37,7 @@ use openhuman_core::openhuman::tools::registry::{all_tool_registry_controller_schemas, all_tool_registry_registered_controllers,capability_provider_by_id, capability_provider_diagnostics, capability_provider_registry,denials, get_tool, is_capability_provider_trusted_enabled, list_capability_providers,- list_tools, normalize_capability_provider_id, registry_entries,+ list_tools, normalize_capability_provider_id, registry_entries, registry_entries_for_config,CapabilityProviderRegistryError,};@@ -654,7 +654,13 @@ async fn tool_registry_entries_include_connected_mcp_client_tools() {.expect("connect test mcp server");assert_eq!(tools.first().map(|tool| tool.name.as_str()), Some("echo"));- let entries = registry_entries();+ // Config-scoped, not ambient: this case connects through+ // `host::for_config(&config)`, keyed by its own tempdir. `registry_entries()`+ // resolves through the process default instead, which returns a lone host+ // but `None` once another case in this binary has opened a second one — so+ // the ambient form reports nothing connected here purely because of who+ // else ran first.+ let entries = registry_entries_for_config(&config);let client_entry = entries.iter().find(|entry| entry.tool_id == format!("mcp-client::{}::echo", server.server_id))