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
chore: files changed crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs
Steven Enamakelabb563bbaf15
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 962a8051ce..87dbe1e0dd 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,12 +125,15 @@ fn an_equal_millisecond_live_close_persists_and_a_stale_snapshot_cannot_reopen_ilet stale_snapshot = docs.load().unwrap();with_override(docs.clone(), || {- 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();+ store+ .update_session(&original.subagent_session_id, |current, _now| {+ current.status = DurableSubagentStatus::Closed;+ current.reusable = false;+ // Leave updated_at untouched to force an equal `_ms` live+ // transition deterministically, without a sleep or clock shim.+ })+ .unwrap()+ .expect("the session is updated");// A whole-list snapshot at the same timestamp must not reopen it.store.save(&stale_snapshot).unwrap();