Skip to content

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

fix(subagent_host): key shared flights by normalized checkpoint dir

Steven Enamakelaa0d26f8298a
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index 07dec4e70e..17f8ccabb9 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -581,8 +581,10 @@ pub(super) fn shared_subagent_flight(
let mut flights = flights
.lock()
.unwrap_or_else(|poisoned| poisoned.into_inner());
+ // Key by the normalized root so every caller of one task, whether or not the
+ // directory exists yet, reaches the same reservation.
flights
- .entry(checkpoint_dir.to_path_buf())
+ .entry(checkpoint::absolute_checkpoint_dir(checkpoint_dir.to_path_buf()))
.or_default()
.clone()
}