Skip to content

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

fix(memory): handle missing store path in tool execution

Steven Enamakel273612c7081d
diff --git a/crates/openhuman-core/src/memory/tools/store.rs b/crates/openhuman-core/src/memory/tools/store.rs
index 8dd579e4da..e7234eac0e 100644
--- a/crates/openhuman-core/src/memory/tools/store.rs
+++ b/crates/openhuman-core/src/memory/tools/store.rs
@@ -188,6 +188,7 @@ impl Tool for MemoryStoreTool {
}
let display_key = format!("{namespace}/{key}");
+ let category_label = category.to_string();
let guard = active_memory_guard()
.await
.map_err(|e| anyhow::anyhow!("memory_store: {e}"))?;
@@ -212,7 +213,7 @@ impl Tool for MemoryStoreTool {
// indicator wants to light up on. Never carries `content`.
crate::core::bus::BUS.publish(crate::core::events::DomainEvent::MemoryStored {
key: key.clone(),
- category: category.to_string(),
+ category: category_label,
namespace: namespace.clone(),
});
Ok(ToolResult::success(format!("Stored memory: {display_key}")))