Skip to content

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

fix(web_chat): validate chat start request before processing

Steven Enamakelc4a251a4b2e2
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 5bc3de1343..67cb255ca4 100644
--- a/crates/openhuman-core/src/web_chat/ops/start_chat.rs
+++ b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
@@ -519,6 +519,8 @@ pub async fn start_chat(
crate::core::events::DomainEvent::RunQueueFollowupDispatched {
thread_id: thread_id_task.clone(),
followup_count: followups.len(),
+ item_id: None,
+ text_preview: None,
},
);
dispatch_followups(followups);