The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(subagent_sessions): reject mismatched parent thread ids
Steven Enamakelb417d0ba10d9
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rsindex e99d6aa235..5f7661005c 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs@@ -119,10 +119,14 @@ impl TinySessionStore for OpenHumanTinySubagentSessionStore {parent_session: &str,parent_thread_id: Option<&str>,) -> Result<Vec<TinySession>, SubagentError> {- let thread_id = self.parent_thread_id.as_deref().or(parent_thread_id);if parent_session != self.parent_session {return Ok(Vec::new());}+ let thread_id = match (self.parent_thread_id.as_deref(), parent_thread_id) {+ (Some(bound), Some(requested)) if bound != requested => return Ok(Vec::new()),+ (Some(bound), _) => Some(bound),+ (None, requested) => requested,+ };super::list_for_parent(&self.store, parent_session, thread_id).map_err(SubagentError::Persistence)?.into_iter()