Skip to content

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

chore: files changed crates/openhuman-core/src/flows/memory_tools_tests.rs

Steven Enamakel02486d41aebe
diff --git a/crates/openhuman-core/src/flows/memory_tools_tests.rs b/crates/openhuman-core/src/flows/memory_tools_tests.rs
index 06492863ae..35207b7c59 100644
--- a/crates/openhuman-core/src/flows/memory_tools_tests.rs
+++ b/crates/openhuman-core/src/flows/memory_tools_tests.rs
@@ -120,6 +120,22 @@ async fn failed_replacement_keeps_the_previous_value() {
assert!(items[0].text.contains("first"));
}
+#[tokio::test]
+async fn remembering_identical_content_keeps_the_replayed_item() {
+ let (_tmp, config) = engine_config();
+ let first = remember_keyed(&config, "f1", "k", "same", LearningKind::Fact)
+ .await
+ .unwrap();
+ let replay = remember_keyed(&config, "f1", "k", "same", LearningKind::Fact)
+ .await
+ .unwrap();
+
+ assert_eq!(replay, first);
+ let items = list(&config, flow_filter("f1")).await;
+ assert_eq!(items.len(), 1);
+ assert_eq!(items[0].id.0, first);
+}
+
#[tokio::test]
async fn flow_filters_isolate_flows_and_cross_flow_sees_all() {
let (_tmp, config) = engine_config();