Skip to content

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

test(agent): add parent_epoch to subagent host tests

Steven Enamakel0370c320faff
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.rs
index ac5db9c740..c4221c3a8a 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
@@ -50,6 +50,7 @@ async fn driver_cancel_uses_the_typed_terminal_for_lossy_idle_sessions() {
worker_thread_id: None,
task_id: task_id.into(),
lifecycle_key: Some(key.clone()),
+ parent_epoch: None,
},
None,
)
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
index d2c2fa04cc..66a3aa8b73 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
@@ -258,6 +258,7 @@ async fn legacy_durable_session_resolves_its_key_only_from_owned_checkpoint() {
worker_thread_id: None,
task_id: "task".into(),
lifecycle_key: None,
+ parent_epoch: None,
},
None,
)
@@ -315,6 +316,7 @@ async fn tiny_session_port_recovers_legacy_key_from_owned_pause_and_hides_foreig
worker_thread_id: None,
task_id: "task".into(),
lifecycle_key: None,
+ parent_epoch: None,
},
None,
)
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs
index d13962bbbc..5574250231 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs
@@ -336,6 +336,7 @@ async fn closing_a_durable_driver_session_cancels_only_its_registered_child() {
task_title: "Close driver lifecycle".into(),
current_task_id: Some("close-driver-task".into()),
lifecycle_key: Some(task_key),
+ parent_epoch: None,
status: DurableSubagentStatus::Running,
reusable: true,
latest_history: None,
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs
index 69c54f1820..795b988ff0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs
@@ -187,6 +187,7 @@ async fn static_live_harness_builder_resolves_control_aliases_from_the_execution
task_title: "Research task".into(),
current_task_id: Some("live-task".into()),
lifecycle_key: None,
+ parent_epoch: None,
status: DurableSubagentStatus::Idle,
reusable: true,
latest_history: None,
@@ -297,6 +298,7 @@ async fn live_close_alias_enforces_parent_thread_ownership() {
task_title: "Research task".into(),
current_task_id: Some(format!("task-{id}")),
lifecycle_key: None,
+ parent_epoch: None,
status: DurableSubagentStatus::Idle,
reusable: true,
latest_history: None,