Only render if chat is clear
| @@ -2,7 +2,6 @@ import { | ||
| 2 | 2 | addOneMessage, |
| 3 | 3 | characters, |
| 4 | 4 | chat, |
| 5 | - clearChat, | |
| 6 | 5 | displayVersion, |
| 7 | 6 | doNewChat, |
| 8 | 7 | event_types, |
| @@ -48,12 +47,10 @@ export function getPermanentAssistantAvatar() { | ||
| 48 | 47 | |
| 49 | 48 | export async function openWelcomeScreen() { |
| 50 | 49 | const currentChatId = getCurrentChatId(); |
| 51 | 50 | if (currentChatId !== undefined || chat.length > 0) { |
| 52 | 51 | return; |
| 53 | 52 | } |
| 54 | 53 | |
| 55 | - await clearChat(); | |
| 56 | - chat.length = 0; | |
| 57 | 54 | await sendWelcomePanel(); |
| 58 | 55 | sendAssistantMessage(); |
| 59 | 56 | sendSystemMessage(system_message_types.WELCOME_PROMPT); |