Skip to content

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

test(orchestration): add lifecycle_key to subagent session fixtures

Steven Enamakel31d120508bbb
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
index ca3dda0c17..3b3b14b550 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
@@ -344,6 +344,7 @@ async fn snapshot_and_block_scope_to_parent_and_reflect_live_status() {
task_title: "Daily X trending email workflow".into(),
worker_thread_id: None,
task_id: "task-cold-1".into(),
+ lifecycle_key: None,
},
None,
)
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs
index 4214ba6365..4b7e31a9ea 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs
@@ -52,6 +52,7 @@ fn compatible_session_reuses_and_incompatible_shape_spawns_new() {
task_title: "Same task".into(),
worker_thread_id: Some("worker-1".into()),
task_id: "sub-1".into(),
+ lifecycle_key: None,
};
let session = upsert_running(&store, upsert, None).unwrap();
mark_finished(
@@ -85,6 +86,7 @@ fn closed_session_is_not_reusable() {
task_title: "Task".into(),
worker_thread_id: None,
task_id: "sub-1".into(),
+ lifecycle_key: None,
},
None,
)
@@ -106,6 +108,7 @@ fn list_for_parent_without_thread_id_does_not_filter_by_thread() {
task_title: "First".into(),
worker_thread_id: None,
task_id: "sub-1".into(),
+ lifecycle_key: None,
},
None,
)
@@ -121,6 +124,7 @@ fn list_for_parent_without_thread_id_does_not_filter_by_thread() {
task_title: "Second".into(),
worker_thread_id: None,
task_id: "sub-2".into(),
+ lifecycle_key: None,
},
None,
)
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
index daf1f2cca8..39a270d68e 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
@@ -82,6 +82,7 @@ fn seed_session(
task_title: "Task".into(),
worker_thread_id: Some("worker-1".into()),
task_id: "sub-1".into(),
+ lifecycle_key: None,
},
None,
)
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index bb1f00b4be..c0ebe3ae4f 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -279,6 +279,7 @@ impl SpawnAsyncSubagentTool {
task_title: task_title.clone(),
worker_thread_id: worker_thread_id.clone(),
task_id: task_id.clone(),
+ lifecycle_key: None,
},
reusable.as_ref(),
) {
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs
index 81b036b7c7..f6b321df72 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs
@@ -65,6 +65,7 @@ async fn late_registration_refusal_aborts_the_worker_and_settles_its_durable_ses
task_title: "late refusal".into(),
worker_thread_id: None,
task_id: "late-refusal-task".into(),
+ lifecycle_key: None,
},
None,
)
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.rs
index 95817fb41e..738a8c11bf 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
@@ -307,6 +307,7 @@ async fn continue_subagent_resumes_idle_durable_session_e2e() {
task_title: "Durable resume task".into(),
worker_thread_id: None,
task_id: "sub-earlier-task".into(),
+ lifecycle_key: None,
},
None,
)