Skip to content

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

fix(memory): handle empty memory in engine operations

Steven Enamakelb9ce862f7307
diff --git a/crates/openhuman-core/src/memory/ops/engine.rs b/crates/openhuman-core/src/memory/ops/engine.rs
index 532ade3bb1..d93cbe3422 100644
--- a/crates/openhuman-core/src/memory/ops/engine.rs
+++ b/crates/openhuman-core/src/memory/ops/engine.rs
@@ -130,6 +130,7 @@ fn expected_capabilities(id: &str) -> Vec<String> {
/// factory's in-memory `tinycortex` (not persistent).
#[must_use]
pub fn available_engines() -> Vec<EngineEntry> {
+ #[cfg_attr(not(feature = "memory-remote"), allow(unused_mut))]
let mut engines = vec![EngineEntry {
id: MODULE_ID.to_string(),
label: "TinyCortex (local)".to_string(),