Skip to content

Commit 68dd656

Browse files
committed
Interaction fix
1 parent d511265 commit 68dd656

File tree

1 file changed

+2
-6
lines changed
  • services/web/src/components/bot

1 file changed

+2
-6
lines changed

services/web/src/components/bot/Bot.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,6 @@ const ChatBotComponent: React.FC<ChatBotComponentProps> = (props) => {
211211
response.body.initialized === true;
212212

213213
if (isInitialized) {
214-
await params.injectMessage(
215-
"Chatbot is already initialized! Loading chat history...",
216-
);
217-
218214
// Fetch and display chat history
219215
const chatHistory = await fetchChatHistory();
220216
console.log("Chat history:", chatHistory);
@@ -233,7 +229,7 @@ const ChatBotComponent: React.FC<ChatBotComponentProps> = (props) => {
233229
);
234230
}
235231
await params.injectMessage(
236-
`Loaded ${chatHistory.length} previous messages. You can now start chatting!`,
232+
`Loaded ${chatHistory.length} previous messages!`,
237233
);
238234
}
239235

@@ -334,7 +330,7 @@ What would you like to do next?`);
334330
}));
335331

336332
if (chatHistory.length > 0) {
337-
await params.injectMessage(
333+
await params.simulateStreamMessage(
338334
`Loaded ${chatHistory.length} previous messages. You can now start chatting!`,
339335
);
340336
} else {

0 commit comments

Comments
 (0)