Skip to content

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

chore: files changed src/openhuman/agent/harness/archivist/lifecycle.rs

Steven Enamakel37da10cc5398
diff --git a/src/openhuman/agent/harness/archivist/lifecycle.rs b/src/openhuman/agent/harness/archivist/lifecycle.rs
index 9aeb6fb7e3..a29be8e719 100644
--- a/src/openhuman/agent/harness/archivist/lifecycle.rs
+++ b/src/openhuman/agent/harness/archivist/lifecycle.rs
@@ -559,7 +559,10 @@ impl ArchivistHook {
segment.segment_id, summary
);
crate::openhuman::memory::goals::spawn_enrich_goals(
- cfg.clone(),
+ // The hook now shares the factory's `Arc<Config>`; this
+ // detached task still owns a `Config`, so materialise one
+ // here. Once per closed segment, not once per live agent.
+ cfg.as_ref().clone(),
cfg.workspace_dir.clone(),
context,
);