Skip to content

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

fix(runtime): simplify workspace directory comparison in context sharing

Steven Enamakel028162de7492
diff --git a/crates/openhuman-core/src/core/runtime/context.rs b/crates/openhuman-core/src/core/runtime/context.rs
index b6d7b9f2c4..0900593897 100644
--- a/crates/openhuman-core/src/core/runtime/context.rs
+++ b/crates/openhuman-core/src/core/runtime/context.rs
@@ -448,8 +448,7 @@ impl CoreContext {
.map(|handle| Arc::clone(&**handle));
let can_share = parent_handle.as_ref().is_some_and(|handle| {
handle.read().ok().is_some_and(|parent| {
- parent.workspace_dir.as_deref()
- == Some(overlay.config.workspace_dir.as_path())
+ parent.workspace_dir.as_deref() == Some(overlay.config.workspace_dir.as_path())
&& (parent.memory_subsystem == overlay.config.subsystems.memory
|| self.embedder_config.as_ref().is_some_and(|config| {
config.workspace_dir == overlay.config.workspace_dir