Skip to content

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

chore: files changed crates/openhuman-core/src/flows/caps_host/agent_tests.rs

Steven Enamakel9bd79f6289f3
diff --git a/crates/openhuman-core/src/flows/caps_host/agent_tests.rs b/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
index 7a864a6d8c..ace0bbcd7d 100644
--- a/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
+++ b/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
@@ -592,11 +592,9 @@ async fn headless_child_at_depth_cap_gets_readable_spawn_refusal() {
)
.expect("build the headless depth-cap root");
agent.set_agent_definition_name("orchestrator".to_string());
- agent.set_host_env(crate::agent::turn_env::HostTurnEnv {
- spawn_depth_limit: Some(1),
- core: Some(std::sync::Arc::downgrade(&core)),
- ..Default::default()
- });
+ let mut host_env = agent.host_env().clone();
+ host_env.spawn_depth_limit = Some(1);
+ agent.set_host_env(host_env);
agent.enable_headless_descendant_settlement();
let (child_started_tx, child_started_rx) = tokio::sync::oneshot::channel();