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,src/openhuman/agent/harness/

Steven Enamakel526fcb4e4bbc
diff --git a/src/openhuman/agent/harness/archivist/lifecycle.rs b/src/openhuman/agent/harness/archivist/lifecycle.rs
index 600b293ee8..9aeb6fb7e3 100644
--- a/src/openhuman/agent/harness/archivist/lifecycle.rs
+++ b/src/openhuman/agent/harness/archivist/lifecycle.rs
@@ -91,7 +91,7 @@ impl ArchivistHook {
/// `new`, `disabled` or `new_with_stubs*` — and the tests that do need a
/// deterministic LLM install the task-local around the call itself, which
/// is where it has to be anyway for `summarise` to see it.
- pub fn with_config(mut self, config: Config) -> Self {
+ pub fn with_config(mut self, config: std::sync::Arc<Config>) -> Self {
// Probe the summariser: can this host build a chat model for the recap
// role right now? The model is dropped immediately — see above.
let probe = crate::openhuman::inference::provider::create_chat_model_with_model_id(
diff --git a/src/openhuman/agent/harness/archivist/types.rs b/src/openhuman/agent/harness/archivist/types.rs
index e3d8096d14..0ea6b54374 100644
--- a/src/openhuman/agent/harness/archivist/types.rs
+++ b/src/openhuman/agent/harness/archivist/types.rs
@@ -24,7 +24,13 @@ pub struct ArchivistHook {
///
/// When `None`, the tree-ingest path is skipped. Set via
/// [`ArchivistHook::with_config`] on the production path.
- pub(super) config: Option<Config>,
+ ///
+ /// Held behind an `Arc` so the hook shares the session factory's single
+ /// `Config` snapshot rather than deep-cloning a 95-field struct with
+ /// nested `Vec`s into every live agent (openhuman#6218). `Config` is
+ /// immutable after construction, so sharing and copying are behaviourally
+ /// identical here.
+ pub(super) config: Option<std::sync::Arc<Config>>,
/// Whether an LLM summariser can be built for this workspace. `false`
/// means the heuristic bookend summary is used instead.
///