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): use whole-list save in equal-ms close test
Steven Enamakel039a8ae56850
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 211f8ebcfa..f00c1aeb60 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@@ -125,15 +125,12 @@ fn an_equal_millisecond_live_close_persists_and_a_stale_snapshot_cannot_reopen_ilet stale_snapshot = docs.load().unwrap();with_override(docs.clone(), || {- store- .update_session(&original.subagent_session_id, |current, _now| {- current.status = DurableSubagentStatus::Closed;- current.reusable = false;- // Deliberately leave updated_at unchanged to force an equal- // `_ms` live transition without a clock shim or sleep.- })- .unwrap()- .expect("the session is updated");+ let mut closed = original.clone();+ closed.status = DurableSubagentStatus::Closed;+ closed.reusable = false;+ // The old whole-list writer skips this live transition because its+ // stored and incoming millisecond timestamps are equal.+ store.save(&[closed]).unwrap();// A whole-list snapshot at the same timestamp must not reopen it.store.save(&stale_snapshot).unwrap();