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(orchestration): point e2e tests at persistent workspace storage
Steven Enamakel53a97e021e99
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rsindex 9083bd2503..ca06b8e72c 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs@@ -7,6 +7,7 @@ async fn continue_subagent_resumes_paused_job_through_shared_driver() {let _ = AgentDefinitionRegistry::init_global_builtins();let workspace = tempfile::TempDir::new().expect("workspace");+ crate::storage::local::use_persistent_default_for_test(workspace.path());let provider = Arc::new(PauseThenAnswerModel {calls: std::sync::atomic::AtomicUsize::new(0),seen: Mutex::new(Vec::new()),@@ -337,6 +338,8 @@ async fn delegate_graph_runs_every_stage_through_shared_driver_jobs() {let _ = AgentDefinitionRegistry::init_global_builtins();let workspace = tempfile::TempDir::new().expect("workspace");+ crate::storage::local::use_persistent_default_for_test(workspace.path());+ crate::storage::local::use_persistent_default_for_test(workspace.path());let provider = Arc::new(ScriptedModel::new(vec![("Produce a short, concrete", "1. inspect the fixture"),("Carry out the plan below", "graph-stage-execution-canary"),diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex 118a9ac710..044f72b09e 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -466,6 +466,7 @@ async fn continue_subagent_without_checkpoint_or_durable_session_names_the_rosteasync fn spawn_worker_thread_tool_persists_worker_thread_e2e() {let _ = AgentDefinitionRegistry::init_global_builtins();let workspace = tempfile::TempDir::new().expect("workspace");+ crate::storage::local::use_persistent_default_for_test(workspace.path());let provider = Arc::new(ScriptedModel::new(vec![(WORKER_THREAD_CANARY,"worker-thread-child-answer",diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_workspace_owner_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_workspace_owner_tests.rsindex de81145a7c..a63283ae1f 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_workspace_owner_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_workspace_owner_tests.rs@@ -35,6 +35,8 @@ async fn driver_job_controls_are_isolated_by_workspace_with_shared_runtime_statelet workspace_b = scratch.path().join("workspace-b");std::fs::create_dir_all(&workspace_a).expect("create workspace A");std::fs::create_dir_all(&workspace_b).expect("create workspace B");+ crate::storage::local::use_persistent_default_for_test(&workspace_a);+ crate::storage::local::use_persistent_default_for_test(&workspace_b);let mut base_config = crate::config::Config::default();base_config.workspace_dir = workspace_a.clone();base_config.components.juice = false;diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rsindex 32e43ac3bd..dfe1dff121 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rs@@ -9,6 +9,7 @@ async fn driver_cancel_uses_the_typed_terminal_for_lossy_idle_sessions() {let directory = tempfile::tempdir().unwrap();let workspace = directory.path();+ crate::storage::local::use_persistent_default_for_test(workspace);let store = SubagentSessionStore::new(workspace.to_path_buf());let jobs = tinyagents_orchestration::subagent::SubAgentJobRegistry::default();let persistence = OpenHumanPersistence::new(workspace.join(".openhuman/subagent_checkpoints"));diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rsindex fbdc2c12f9..01c4896aa0 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs@@ -294,6 +294,7 @@ async fn tiny_session_port_recovers_legacy_key_from_owned_pause_and_hides_foreiguse tinyagents_orchestration::subagent::SubagentSessionStore as _;let workspace = tempfile::tempdir().unwrap();+ crate::storage::local::use_persistent_default_for_test(workspace.path());let checkpoint_dir = workspace.path().join(".openhuman/subagent_checkpoints");let key = key();let store = crate::agent::orchestration::subagent_sessions::SubagentSessionStore::new(