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(subagent_sessions): fix test fixtures for lifecycle key ownership
Steven Enamakel922b2fbfbb03
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.rsindex fd9304ca6a..0039b37c61 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@@ -105,7 +105,7 @@ fn upsert_persists_the_full_lifecycle_key_without_collapsing_to_task_id() {.find(|row| row.subagent_session_id == session.subagent_session_id).unwrap();assert_eq!(loaded.current_task_id.as_deref(), Some("sub-1"));- assert_eq!(loaded.lifecycle_key, Some(key));+ assert_eq!(loaded.lifecycle_key, Some(key.clone()));let resolved = resolve_lifecycle_key(&store,&session.subagent_session_id,diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rsindex 3b6fa723c8..6998431619 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rs@@ -21,7 +21,7 @@ fn session(id: &str) -> DurableSubagentSession {"actionRoot": null,"taskKey": "task","taskTitle": "Task",- "currentTaskId": null,+ "currentTaskId": "sub-legacy","status": "idle","reusable": true,"latestHistory": null,@@ -52,7 +52,7 @@ fn save_upserts_sessions_and_keeps_the_others() {// The source fixture intentionally predates lifecycle_key. Its owner and// task reference remain available for the scoped legacy lookup path.assert_eq!(loaded[0].parent_session, "parent");- assert_eq!(loaded[0].current_task_id, None);+ assert_eq!(loaded[0].current_task_id.as_deref(), Some("sub-legacy"));assert_eq!(loaded[0].lifecycle_key, None);// A save from a stale snapshot never removes a session it does not know.docs.save(&[session("c")]).unwrap();