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(session_store): assert shared scope via turn state round-trip
Steven Enamakel7e42670089dd
diff --git a/crates/openhuman-core/src/agent/session_store/rebound_tests.rs b/crates/openhuman-core/src/agent/session_store/rebound_tests.rsindex 1f38afd457..e43cfc44ed 100644--- a/crates/openhuman-core/src/agent/session_store/rebound_tests.rs+++ b/crates/openhuman-core/src/agent/session_store/rebound_tests.rs@@ -73,13 +73,20 @@ fn the_provider_surface_forwards_to_the_current_backend() {assert!(rendered.contains("ReboundSessionStores"), "{rendered}");assert!(rendered.contains("destination"), "{rendered}");- // `for_agent` and `try_for_agent` open the same agent scope.+ // `for_agent` and `try_for_agent` open the same agent scope: a turn state+ // written through one is read back through the other.let infallible = stores.for_agent("forwarded");let fallible = stores.try_for_agent("forwarded").unwrap();- assert_eq!(- infallible.transcripts.destination_key(),- fallible.transcripts.destination_key()- );+ infallible+ .turn_states+ .put(&tinyagents_session::turn_state::TurnState::started(+ "t-fwd",+ "r",+ 4,+ "2026-01-01T00:00:00Z",+ ))+ .unwrap();+ assert!(fallible.turn_states.get("t-fwd").unwrap().is_some());assert!(stores.recover().is_ok());assert_eq!(diff --git a/crates/openhuman-core/src/agent/session_store/workspace_tests.rs b/crates/openhuman-core/src/agent/session_store/workspace_tests.rsindex 7e60b67d22..c8297efbd3 100644--- a/crates/openhuman-core/src/agent/session_store/workspace_tests.rs+++ b/crates/openhuman-core/src/agent/session_store/workspace_tests.rs@@ -9,10 +9,16 @@ fn scratch() -> tempfile::TempDir {fn the_calling_tenants_stores_open_on_the_workspace_default() {let ws = scratch();let stores = stores_for(ws.path()).expect("the operator has a tenant");+ let state = tinyagents_session::turn_state::TurnState::started(+ "thread-s",+ "req-s",+ 4,+ "2026-10-09T00:00:00Z",+ );+ stores.turn_states.put(&state).unwrap();let again = stores_or_ephemeral(ws.path());- assert_eq!(- stores.transcripts.destination_key(),- again.transcripts.destination_key(),+ assert!(+ again.turn_states.get("thread-s").unwrap().is_some(),"both resolve the same workspace default");}