Skip to content

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

fix(memory): correct borrow of guard in fallback recall

Steven Enamakel260efc5807f7
diff --git a/crates/openhuman-core/src/memory/ops/documents.rs b/crates/openhuman-core/src/memory/ops/documents.rs
index 00cb167ea9..8355925d71 100644
--- a/crates/openhuman-core/src/memory/ops/documents.rs
+++ b/crates/openhuman-core/src/memory/ops/documents.rs
@@ -565,7 +565,7 @@ pub async fn memory_query_namespace(
.map_err(|error| error.to_string())?,
None => {
fallback::recall_hits(
- &guard,
+ guard.as_ref(),
&request.namespace,
&request.query,
retrieval_limit as usize,