Skip to content

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

fix(web_chat): track subagent parent call ids in progress bridge

Steven Enamakel9db51b607be6
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index 46262adaf8..0818596480 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -758,6 +758,7 @@ pub(crate) fn spawn_progress_bridge(
parent_call_id,
..
} => {
+ subagent_parent_call_ids.insert(task_id.clone(), parent_call_id.clone());
let label = display_name.as_deref().unwrap_or(&agent_id);
let kind = if worker_thread_id.is_some() {
AgentRunKind::WorkerThread
diff --git a/crates/openhuman-core/src/web_chat/run_task.rs b/crates/openhuman-core/src/web_chat/run_task.rs
index 715fb7c735..0cac413e1a 100644
--- a/crates/openhuman-core/src/web_chat/run_task.rs
+++ b/crates/openhuman-core/src/web_chat/run_task.rs
@@ -148,7 +148,7 @@ pub(crate) async fn run_chat_task(
// this already-large `run_chat_task` frame (which otherwise overflows the
// default test-thread stack — see the channels web-turn coverage tests).
let turn = Box::pin(agent.run_single(message));
- let result = match turn.await {
+ let mut result = match turn.await {
Ok(response) => {
// A successful turn proves the thread's balance is usable, so drop
// any stale budget-exhausted signal before it could mislabel a