Skip to content

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

fix(web_chat): prevent duplicate agent spawns on parallel tool calls

Steven Enamakel017a81d1d3f9
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 3dabe66903..d9379702a1 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
@@ -62,7 +62,7 @@ impl ToolDispatch<(), crate::agent::tinyagents::host::OpenHumanRunContext>
async fn execute(
&self,
_state: &(),
- _call_id: tinyagents_harness::CallId,
+ call_id: tinyagents_harness::CallId,
arguments: serde_json::Value,
_options: ToolCallOptions,
parent: &RunContext<crate::agent::tinyagents::host::OpenHumanRunContext>,
@@ -73,6 +73,7 @@ impl ToolDispatch<(), crate::agent::tinyagents::host::OpenHumanRunContext>
parent.workspace.clone(),
parent.data.child(),
Some(parent),
+ Some(call_id.as_str().to_string()),
)
.await
}
diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rs
index f0cefb0f15..eba0080467 100644
--- a/crates/openhuman-core/src/web_chat/mod.rs
+++ b/crates/openhuman-core/src/web_chat/mod.rs
@@ -31,7 +31,7 @@ mod ops;
// Response delivery/segmentation for the web surface (folded in from the former
// standalone `presentation` provider — it is the web channel's delivery formatter).
pub mod presentation;
-mod progress_bridge;
+pub(crate) mod progress_bridge;
mod reply_persistence;
mod run_task;
mod schemas;