Skip to content

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

fix(parallel): handle missing agent name in spawn parallel graph

Steven Enamakel57bd3bb6e5c8
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/types.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/types.rs
index 24e38d9480..6440c79369 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/types.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/types.rs
@@ -12,8 +12,7 @@ use super::staging::WorkerDispatchMode;
/// One worker admitted by the `spawn_parallel_agents` tool.
///
-/// This is intentionally a host request contract: its `toolkit`, ownership
-/// syntax, and worktree options are OpenHuman product policy. The tool owns
+/// This is intentionally a host request contract: its ownership syntax and worktree options are OpenHuman product policy. The tool owns
/// JSON decoding; the execution pipeline receives this typed value only.
#[derive(Debug, Clone, Deserialize)]
pub(crate) struct ParallelAgentTask {
@@ -22,8 +21,6 @@ pub(crate) struct ParallelAgentTask {
#[serde(default)]
pub(crate) context: Option<String>,
#[serde(default)]
- pub(crate) toolkit: Option<String>,
- #[serde(default)]
pub(crate) ownership: Option<String>,
#[serde(default)]
pub(crate) isolation: Option<String>,
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/workers.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/workers.rs
index f38d6e92ff..28656d1381 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/workers.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/workers.rs
@@ -125,7 +125,6 @@ async fn run_one_parallel_task(
tracing::debug!(
task_id = %task_id,
agent_id = %definition.id,
- toolkit = task.toolkit.as_deref().unwrap_or(""),
context_chars = task.context.as_ref().map(|s| s.chars().count()).unwrap_or(0),
prompt_chars = prompt.chars().count(),
isolated = worktree_path.is_some(),
@@ -138,7 +137,6 @@ async fn run_one_parallel_task(
});
let options = SubagentRunOptions {
skill_filter_override: None,
- toolkit_override: task.toolkit.clone(),
context: task.context.clone(),
model_override: None,
task_id: Some(task_id.clone()),
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents.rs
index 09aa63c795..2b5e5fbcdb 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents.rs
@@ -129,8 +129,8 @@ pub(crate) async fn execute_spawn_parallel_agents(
/// Decode the tool's JSON request before it reaches host execution policy.
///
/// This remains beside the tool rather than becoming a TinyAgents API: the
-/// parameter shape includes OpenHuman-specific ownership, toolkit, and
-/// worktree-policy fields.
+/// parameter shape includes OpenHuman-specific ownership and worktree-policy
+/// fields.
fn parse_parallel_agent_tasks(
args: &serde_json::Value,
) -> Result<Vec<ParallelAgentTask>, ParallelAgentTaskRequestError> {
@@ -164,7 +164,7 @@ impl Tool for SpawnParallelAgentsTool {
"Run two or more independent sub-agent tasks concurrently and collect their results. \
Read-only and worktree-isolated workers run in parallel; shared-workspace workers with \
write-capable tools require disjoint `files:` ownership and run through a serial fallback. \
- Each task has `{agent_id, prompt, context?, toolkit?, ownership?, isolation?, base_ref?}`."
+ Each task has `{agent_id, prompt, context?, ownership?, isolation?, base_ref?}`."
}
fn parameters_schema(&self) -> serde_json::Value {
@@ -190,7 +190,6 @@ impl Tool for SpawnParallelAgentsTool {
"agent_id": agent_id_schema,
"prompt": { "type": "string" },
"context": { "type": "string" },
- "toolkit": { "type": "string" },
"ownership": {
"type": "string",
"description": "Disjoint file/module/responsibility boundary for this worker."