diff --git a/src/agent/identity.rs b/src/agent/identity.rs index 351a505..ec8c1ad 100644 --- a/src/agent/identity.rs +++ b/src/agent/identity.rs @@ -93,11 +93,17 @@ fn load_memory_files(cwd: &Path, memory_project: Option<&Path>, context_groups: // Journal loading handled separately continue; } - ContextSource::File | ContextSource::Store => { - // File source - load each key as a file + ContextSource::Store => { + // Load from the memory graph store + for key in &group.keys { + if let Some(node) = crate::hippocampus::memory::MemoryNode::load(key) { + memories.push((key.clone(), node.content)); + } + } + } + ContextSource::File => { for key in &group.keys { let filename = format!("{}.md", key); - // Try config dir first, then project, then global if let Some(content) = read_nonempty(&config_dir.join(&filename)) { memories.push((key.clone(), content)); } else if let Some(content) = load_memory_file(&filename, project.as_deref(), &global) { @@ -105,7 +111,6 @@ fn load_memory_files(cwd: &Path, memory_project: Option<&Path>, context_groups: } } } - // All variants covered } }