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 missing chat ID in start chat response

Steven Enamakelb4c816ba1abd
diff --git a/crates/openhuman-core/src/web_chat/ops/start_chat.rs b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
index 5c083040cc..5bc3de1343 100644
--- a/crates/openhuman-core/src/web_chat/ops/start_chat.rs
+++ b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
@@ -325,6 +325,8 @@ pub async fn start_chat(
crate::core::bus::BUS.publish(DomainEvent::RunQueueInterrupted {
thread_id: thread_id.clone(),
cancelled_request_id: cancelled_id.clone(),
+ item_id: None,
+ text_preview: None,
});
publish_web_channel_event(WebChannelEvent {
event: "chat_error".to_string(),