Skip to content

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

feat(web_chat): include timing payload in response and done events

Steven Enamakeld2f8c972f303
diff --git a/crates/openhuman-core/src/web_chat/presentation.rs b/crates/openhuman-core/src/web_chat/presentation.rs
index fd58ad073c..1a5b14e828 100644
--- a/crates/openhuman-core/src/web_chat/presentation.rs
+++ b/crates/openhuman-core/src/web_chat/presentation.rs
@@ -239,6 +239,7 @@ pub(crate) async fn deliver_response(
Some(serde_json::json!(citations))
},
usage: usage_payload,
+ timing: timing_payload,
// Terminal delivery events are emitted outside the seq-stamping
// progress bridge; leave `seq` unset (older clients ignore it).
seq: None,
@@ -324,6 +325,7 @@ fn publish_chat_done(
Some(serde_json::json!(citations))
},
usage: usage_payload,
+ timing: timing_payload,
// Terminal delivery events are emitted outside the seq-stamping
// progress bridge; leave `seq` unset (older clients ignore it).
seq: None,