From ec83d2c149cc10fff5c58cdc8b8e9e6c344a01ff Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 17 Mar 2026 15:14:53 -0300 Subject: [PATCH] fix: send empty init message on WS open to trigger start.bas and load suggestions --- ui/suite/chat/chat.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ui/suite/chat/chat.html b/ui/suite/chat/chat.html index 9834a00..f7ead7f 100644 --- a/ui/suite/chat/chat.html +++ b/ui/suite/chat/chat.html @@ -951,6 +951,16 @@ console.log("WebSocket connected to:", url); disconnectNotified = false; updateConnectionStatus("connected"); + // Send empty message to trigger start.bas and load suggestions + ws.send(JSON.stringify({ + bot_id: currentBotId, + user_id: currentUserId, + session_id: currentSessionId, + channel: "web", + content: "", + message_type: MessageType.USER, + timestamp: new Date().toISOString(), + })); }; ws.onmessage = function (event) {