Hide optional memory graph loading behind bridge

This commit is contained in:
Meta Vens 2026-05-18 06:54:32 +01:00
commit 536caa4597
2 changed files with 20 additions and 19 deletions

View file

@ -79,6 +79,15 @@ pub async fn load_thread_memory_graph_snapshot(
})
}
pub async fn load_optional_thread_memory_graph_snapshot(
thread: Option<&CodexThread>,
) -> Result<Option<EpiphanyMemoryGraphSnapshot>, CodexErr> {
let Some(thread) = thread else {
return Ok(None);
};
load_thread_memory_graph_snapshot(thread).await
}
pub fn mirror_thread_state_to_workspace(
workspace_root: &Path,
thread_id: &str,