diff --git a/public/scripts/welcome-screen.js b/public/scripts/welcome-screen.js index d1ba3b9a4..82186732b 100644 --- a/public/scripts/welcome-screen.js +++ b/public/scripts/welcome-screen.js @@ -2,6 +2,7 @@ import { addOneMessage, characters, chat, + clearChat, displayVersion, doNewChat, event_types, @@ -51,6 +52,8 @@ export async function openWelcomeScreen() { return; } + await clearChat(); + chat.length = 0; await sendWelcomePanel(); sendAssistantMessage(); sendSystemMessage(system_message_types.WELCOME_PROMPT);