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
style: apply rustfmt formatting to subagent session code
Steven Enamakel65cd869828bd
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rsindex fd94bd6a1d..d255518ee1 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs@@ -54,10 +54,11 @@ pub(crate) fn cancel_by_task_with_workspace_reason(let Some(workspace_dir) = workspace_dir else {return Ok(None);};- let store = crate::agent::orchestration::subagent_sessions::SubagentSessionStore::new_in_context(- ctx,- workspace_dir.clone(),- )?;+ let store =+ crate::agent::orchestration::subagent_sessions::SubagentSessionStore::new_in_context(+ ctx,+ workspace_dir.clone(),+ )?;let jobs = crate::core::runtime::slot_for::<tinyagents_harness_tools::subagents::SubAgentJobRegistry,>(ctx);diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rsindex 9500e80183..814dfc1d1c 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rs@@ -103,11 +103,12 @@ pub(crate) fn active_subagents_context_block(workspace_dir: &std::path::Path,) -> Option<String> {admit_workspace(ctx, workspace_dir).ok()?;- let store = crate::agent::orchestration::subagent_sessions::SubagentSessionStore::new_in_context(- ctx,- workspace_dir.to_path_buf(),- )- .ok()?;+ let store =+ crate::agent::orchestration::subagent_sessions::SubagentSessionStore::new_in_context(+ ctx,+ workspace_dir.to_path_buf(),+ )+ .ok()?;let durable = crate::agent::orchestration::subagent_sessions::list_for_parent(&store,parent_session,diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store.rsindex a0f9f2f9a7..2a8ba8fa74 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store.rs@@ -28,9 +28,7 @@ impl SubagentSessionStore {fn in_scope<T>(&self, f: impl FnOnce() -> T) -> T {match &self.context {- Some(context) => {- crate::core::runtime::CoreContext::sync_scope(Arc::clone(context), f)- }+ Some(context) => crate::core::runtime::CoreContext::sync_scope(Arc::clone(context), f),None => f(),}}diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rsindex f394770fa9..38c5001094 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rs@@ -155,7 +155,7 @@ pub struct SubagentSessionUpsert {pub parent_epoch: Option<u64>,}-#[derive(Debug, Clone)]+#[derive(Clone)]pub struct SubagentSessionStore {pub workspace_dir: PathBuf,pub(crate) context: Option<std::sync::Arc<crate::core::runtime::CoreContext>>,