Skip to content

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

fix(web_chat): handle progress bridge errors gracefully

Steven Enamakelc9d9390e081e
diff --git a/crates/openhuman-core/src/web_chat/presentation.rs b/crates/openhuman-core/src/web_chat/presentation.rs
index 6f558f5b18..bf4e422331 100644
--- a/crates/openhuman-core/src/web_chat/presentation.rs
+++ b/crates/openhuman-core/src/web_chat/presentation.rs
@@ -143,6 +143,7 @@ pub(crate) async fn deliver_response(
reaction_emoji,
citations,
usage_payload,
+ timing_payload,
);
return;
}
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index 8180ee4c13..3ce526650e 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -896,7 +896,8 @@ pub(crate) fn spawn_progress_bridge(
"outputChars": output_chars,
"worktreePath": worktree_path,
"changedFiles": changed_files,
- "dirtyStatus": dirty_status
+ "dirtyStatus": dirty_status,
+ "parentCallId": parent_call_id
}),
},
);
@@ -918,6 +919,8 @@ pub(crate) fn spawn_progress_bridge(
elapsed_ms: Some(elapsed_ms),
iterations: Some(iterations),
output_chars: Some(output_chars as u64),
+ output: Some(capped_output),
+ parent_call_id,
// Present only when this child's spend is NOT
// already in the parent turn's totals — the
// emitting site decides, because only it can