Skip to content

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

test(subagent_host): use shared test definition in runner tests

Steven Enamakelf2137c9a5948
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs
index 30085c5d0a..37ffc5f0a7 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs
@@ -35,10 +35,8 @@ async fn byte_policy_projects_a_parent_readable_artifact_before_the_result_cap()
worktree_action_dir: Some(worktree_action_dir.clone()),
..SubagentRunOptions::default()
};
- let mut definition = AgentDefinitionRegistry::builtins_only()
- .get("code_executor")
- .expect("code executor builtin")
- .clone();
+ let mut definition = crate::agent::harness::test_support::test_main_def();
+ definition.id = "artifact-policy-worker".into();
definition.max_result_chars = Some(16);
let original = format!(
"[artifact] kind=output path=authored.txt bytes=11\nworker-authored artifact\n{}",