Skip to content

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

fix(web_chat): include request_id in external_transfer_pending event

Steven Enamakel4ed101eda5c0
diff --git a/crates/openhuman-core/src/web_chat/event_bus.rs b/crates/openhuman-core/src/web_chat/event_bus.rs
index 2c98af0c42..9f6b246c4a 100644
--- a/crates/openhuman-core/src/web_chat/event_bus.rs
+++ b/crates/openhuman-core/src/web_chat/event_bus.rs
@@ -335,15 +335,17 @@ impl EventHandler<DomainEvent> for EgressSurfaceSubscriber {
}
};
log::info!(
- "[web-channel] egress-surface emitting external_transfer_pending provider={} service={} reason={:?} thread_id={thread_id} client_id={client_id}",
+ "[web-channel] egress-surface emitting external_transfer_pending provider={} service={} reason={:?} thread_id={thread_id} client_id={client_id} request_id={:?}",
descriptor.provider_slug,
descriptor.service,
descriptor.reason,
+ request_id,
);
publish_web_channel_event(WebChannelEvent {
event: "external_transfer_pending".to_string(),
client_id: client_id.clone(),
thread_id: thread_id.clone(),
+ request_id: request_id.clone().unwrap_or_default(),
args: Some(args),
..Default::default()
});