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
test: install managed model fixture in agent test configs
Steven Enamakel6e640abb95bf
diff --git a/crates/openhuman-core/src/core/agent_cli/debug/prompt_size_tests.rs b/crates/openhuman-core/src/core/agent_cli/debug/prompt_size_tests.rsindex 178fe2e6dc..eb26175584 100644--- a/crates/openhuman-core/src/core/agent_cli/debug/prompt_size_tests.rs+++ b/crates/openhuman-core/src/core/agent_cli/debug/prompt_size_tests.rs@@ -80,13 +80,15 @@ fn session_report_measures_the_visible_belt_not_the_registry() {crate::agent_registry::host_definition::AgentDefinitionRegistry::init_global_builtins().unwrap();let tmp = tempfile::TempDir::new().unwrap();- let config = crate::config::Config {+ let mut config = crate::config::Config {workspace_dir: tmp.path().join("workspace"),action_dir: tmp.path().join("workspace"),config_path: tmp.path().join("config.toml"),..crate::config::Config::default()};+ config.default_model = Some("test/session-fixture".to_string());std::fs::create_dir_all(&config.workspace_dir).unwrap();+ crate::agent::session_host::test_support::install_managed_model_fixture(&config);let agent = crate::agent::OpenHumanSessionHost::from_config_for_agent(&crate::core::runtime::DispatchCtx::ambient(),&config,diff --git a/crates/openhuman-core/src/flows/caps_host/ops_tests.rs b/crates/openhuman-core/src/flows/caps_host/ops_tests.rsindex 1bf7f6f0df..42b42ea043 100644--- a/crates/openhuman-core/src/flows/caps_host/ops_tests.rs+++ b/crates/openhuman-core/src/flows/caps_host/ops_tests.rs@@ -32,13 +32,15 @@ fn workflow_origin(job_id: &str, require_approval: bool) -> AgentTurnOrigin {}fn agent_test_config(tmp: &tempfile::TempDir) -> Config {- let config = Config {+ let mut config = Config {workspace_dir: tmp.path().join("workspace"),action_dir: tmp.path().join("workspace"),config_path: tmp.path().join("config.toml"),..Config::default()};+ config.default_model = Some("test/session-fixture".to_string());std::fs::create_dir_all(&config.workspace_dir).unwrap();+ crate::agent::session_host::test_support::install_managed_model_fixture(&config);config}diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rsindex a5e2d7fb05..9f979edab1 100644--- a/crates/openhuman-core/src/flows/ops_tests.rs+++ b/crates/openhuman-core/src/flows/ops_tests.rs@@ -10,12 +10,14 @@ fn test_config(tmp: &TempDir) -> Config {config_path: tmp.path().join("config.toml"),..Config::default()};+ config.default_model = Some("test/session-fixture".to_string());// These suites are about the approval gate and the tier, which only bind// with the policy on; the shipped config default is off. Without this the// manifest tests pass vacuously — a disabled policy answers `Allow` for// every class, so nothing is ever `blocked`.config.autonomy.enabled = true;std::fs::create_dir_all(&config.workspace_dir).unwrap();+ crate::agent::session_host::test_support::install_managed_model_fixture(&config);config}diff --git a/crates/openhuman-core/src/triage/escalation_tests.rs b/crates/openhuman-core/src/triage/escalation_tests.rsindex 3b7fdfd26a..7d1d5a4ef3 100644--- a/crates/openhuman-core/src/triage/escalation_tests.rs+++ b/crates/openhuman-core/src/triage/escalation_tests.rs@@ -10,11 +10,12 @@ use tokio::time::{sleep, timeout, Duration};#[tokio::test]async fn build_triage_parent_scopes_allowed_subagents_to_target() {let dir = tempfile::tempdir().expect("tempdir");- crate::agent::session_host::test_support::install_model_fixture();- let config = Config {+ let mut config = Config {workspace_dir: dir.path().to_path_buf(),..Config::default()};+ config.default_model = Some("test/session-fixture".to_string());+ crate::agent::session_host::test_support::install_managed_model_fixture(&config);let _ = AgentDefinitionRegistry::init_global_builtins();let ctx = build_triage_parent(