Skip to content

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

test(sessions): assert destination key reuse in workspace store test

Steven Enamakel3f4d78a30100
diff --git a/crates/openhuman-core/src/storage/sessions/mod_tests.rs b/crates/openhuman-core/src/storage/sessions/mod_tests.rs
index 2fbd5afda7..d19f119aae 100644
--- a/crates/openhuman-core/src/storage/sessions/mod_tests.rs
+++ b/crates/openhuman-core/src/storage/sessions/mod_tests.rs
@@ -111,9 +111,10 @@ async fn without_a_store_transcripts_come_from_the_workspace_store_not_files() {
))
.expect("append a message");
assert!(transcripts_or_files("u1", dir).session_exists(&session));
- assert!(
- dir.join(tinyagents_session::port::STORE_DIR).is_dir(),
- "the workspace store lives under the workspace"
+ assert_eq!(
+ transcripts_or_files("u1", dir).destination_key(),
+ key,
+ "a second lookup reuses the same workspace storage destination"
);
let provider: Arc<dyn SessionStoreProvider> = Arc::new(InMemorySessionStores::new());
let expected = provider.for_agent("u1").transcripts.destination_key();