Skip to content

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

fix: reorder imports and fix formatting in subagent spawn

Steven Enamakel68d4c18cbfe3
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index ac2922282f..3550487d61 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -363,7 +363,8 @@ impl SpawnAsyncSubagentTool {
prompt.chars().count(),
);
if let Some(ref tx) = progress_sink {
- let _ = tx.send(AgentProgress::SubagentSpawned {
+ let _ = tx
+ .send(AgentProgress::SubagentSpawned {
agent_id: definition.id.clone(),
task_id: task_id.clone(),
mode: "async".to_string(),
diff --git a/crates/openhuman-core/src/tools/host_extensions.rs b/crates/openhuman-core/src/tools/host_extensions.rs
index e6a147bb0d..56cabb7825 100644
--- a/crates/openhuman-core/src/tools/host_extensions.rs
+++ b/crates/openhuman-core/src/tools/host_extensions.rs
@@ -7,9 +7,9 @@
use crate::agent::orchestration::tools::DelegationTarget;
use crate::agent::tool_policy::GeneratedToolRuntimeContext;
use crate::tools::toolpacks::PackRegistryHandle;
-use tinytools::{Tool, ToolRunContext};
#[cfg(test)]
use tinytools::{PermissionLevel, ToolCategory, ToolResult, ToolScope};
+use tinytools::{Tool, ToolRunContext};
/// Reads a tool's pack-registry handle from its erased host extension.
pub fn pack_registry_handle(tool: &dyn Tool) -> Option<&PackRegistryHandle> {