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 source type in memory source parsing

Steven Enamakelc55c7329210a
diff --git a/crates/openhuman-core/src/memory/sources/mod.rs b/crates/openhuman-core/src/memory/sources/mod.rs
index 2b93553cef..f115fe14b3 100644
--- a/crates/openhuman-core/src/memory/sources/mod.rs
+++ b/crates/openhuman-core/src/memory/sources/mod.rs
@@ -41,6 +41,7 @@ pub fn view(source: &MemorySourceConfig, state: Option<&state::SourceState>) ->
status: state.status,
error: state.error,
items: state.items,
+ namespace: namespace_of_source(source).to_string(),
}
}
diff --git a/crates/openhuman-core/src/memory/types.rs b/crates/openhuman-core/src/memory/types.rs
index eded39e105..0d8e886e80 100644
--- a/crates/openhuman-core/src/memory/types.rs
+++ b/crates/openhuman-core/src/memory/types.rs
@@ -281,6 +281,8 @@ pub struct SourceView {
pub error: Option<String>,
/// Items stored by the last sync.
pub items: u64,
+ /// The memory node the source stores at (`root` for the shared one).
+ pub namespace: String,
}
/// `memory_sources_list` result.