Skip to content

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

fix(config): clone runtime state from self fields

Steven Enamakel69c7ed887241
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index 3a8dde19c5..1cdffb974f 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -31,9 +31,9 @@ pub struct ConfigRuntimeState {
impl Clone for ConfigRuntimeState {
fn clone(&self) -> Self {
Self {
- document_snapshot: std::sync::Mutex::new(self.runtime_state.document_snapshot.lock().unwrap().clone()),
- context_snapshot: self.runtime_state.context_snapshot.clone(),
- context_overlay: std::sync::Mutex::new(self.runtime_state.context_overlay.lock().unwrap().clone()),
+ document_snapshot: std::sync::Mutex::new(self.document_snapshot.lock().unwrap().clone()),
+ context_snapshot: self.context_snapshot.clone(),
+ context_overlay: std::sync::Mutex::new(self.context_overlay.lock().unwrap().clone()),
}
}
}