Skip to content

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

test(mcp): build host overrides mutably in evicted client test

Steven Enamakelb2493bf61850
diff --git a/crates/openhuman-core/src/mcp/module_client_tests.rs b/crates/openhuman-core/src/mcp/module_client_tests.rs
index 2fc8705d32..389c4db604 100644
--- a/crates/openhuman-core/src/mcp/module_client_tests.rs
+++ b/crates/openhuman-core/src/mcp/module_client_tests.rs
@@ -544,10 +544,9 @@ async fn a_removed_agent_context_cannot_reopen_its_evicted_client() {
config.workspace_dir = workspace.path().to_path_buf();
config.modules.enabled = true;
let scope = Arc::new(crate::security::approval::ApprovalScope::default());
- let overrides = Arc::new(crate::agent::host_overrides::HostOverrides {
- approval_scope: Some(Arc::clone(&scope)),
- ..Default::default()
- });
+ let mut overrides = crate::agent::host_overrides::HostOverrides::default();
+ overrides.approval_scope = Some(Arc::clone(&scope));
+ let overrides = Arc::new(overrides);
let context = CoreContext::for_test(DomainSet::full(), Some(workspace.path().to_path_buf()))
.derive_with(
ContextOverlay::new(config.clone(), DomainSet::kernel(), ToolGroups::none())