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): read durable subagent rows through driver helper
Steven Enamakeldb8d3e5c1ad3
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 e51ac5027b..fceff83c8f 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@@ -124,13 +124,17 @@ async fn spawn_subagent_with_same_task_key_resumes_paused_job_through_shared_dri"the initial child must reach and persist its clarification before resume");- let sessions = SubagentSessionStore::new(workspace.path().to_path_buf());- let before_session =- crate::core::runtime::CoreContext::sync_scope(Arc::clone(&_core), || sessions.load())- .expect("initial session persisted")- .into_iter()- .find(|session| session.current_task_id.as_deref() == Some(task_id.as_str()))- .expect("initial durable session points at the paused child");+ let before_session = super::driver_sessions_for_parent(+ &live.data.dispatch_ctx(),+ workspace.path(),+ "continue-paused-e2e",+ Some("continue-paused-e2e-thread"),+ )+ .await+ .expect("initial session persisted")+ .into_iter()+ .find(|session| session.current_task_id.as_deref() == Some(task_id.as_str()))+ .expect("initial durable session points at the paused child");assert_eq!(before_session.status, DurableSubagentStatus::AwaitingUser);let original_lifecycle_key = before_session.lifecycle_keydiff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rsindex 3d86e68215..a6293de622 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs@@ -627,8 +627,14 @@ async fn detached_registration_failure_finishes_the_announced_product_card() {),"the announced product card must end in failure: {events:?}");- let store = SubagentSessionStore::new(workspace.clone());- let rows = store.load().expect("session row is durable");+ let rows = super::driver_sessions_for_parent(+ &live.data.dispatch_ctx(),+ &workspace,+ "registration-failure-parent",+ Some(thread_id),+ )+ .await+ .expect("session row is durable");assert_eq!(rows.len(), 1);assert_eq!(rows[0].status, DurableSubagentStatus::Failed);assert!(diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rsindex f1e4006e31..ffda0b9bf8 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rs@@ -26,9 +26,7 @@ async fn profile_scope_cannot_cancel_another_profiles_driver_child() {return;}- use crate::agent::orchestration::subagent_sessions::{- DurableSubagentStatus, SubagentSessionStore,- };+ use crate::agent::orchestration::subagent_sessions::DurableSubagentStatus;use crate::agent::tinyagents::host::OpenHumanRunContext;use crate::core::runtime::{ContextOverlay, CoreContext, DispatchCtx, DomainSet};use crate::tools::toolpacks::ToolGroups;@@ -147,9 +145,14 @@ async fn profile_scope_cannot_cancel_another_profiles_driver_child() {let alice_jobs = crate::core::runtime::slot_for::<tinyagents_harness_tools::subagents::SubAgentJobRegistry,>(&alice_ctx);- let store = SubagentSessionStore::new(workspace.clone());- let row_before = CoreContext::sync_scope(Arc::clone(&alice), || store.load())- .expect("durable child row readable")+ let row_before = super::driver_sessions_for_parent(+ &alice_ctx,+ &workspace,+ "shared-profile-parent-session",+ Some(thread_id),+ )+ .await+ .expect("driver child row readable").into_iter().find(|row| row.current_task_id.as_deref() == Some(task_id.as_str())).expect("durable row belongs to the live child");