Temp chat button works

61f69aa674ab237d8d02fb96636595e8c09984d7

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +3 -2Ignore whitespace
public/script.js+1 -1
@@ -10113,7 +10113,7 @@ async function removeCharacterFromUI() {
1011310113 saveSettingsDebounced();
1011410114}
1011510115
1011610116export async function newAssistantChat() {
1011710117 await clearChat();
1011810118 chat.splice(0, chat.length);
1011910119 chat_metadata = {};
public/scripts/welcome-screen.js+2 -1
@@ -6,6 +6,7 @@ import {
66 getCurrentChatId,
77 getRequestHeaders,
88 getThumbnailUrl,
9+ newAssistantChat,
910 openCharacterChat,
1011 selectCharacterById,
1112 sendSystemMessage,
@@ -50,7 +51,7 @@ async function sendWelcomePanel() {
5051 });
5152 });
5253 fragment.querySelector('button.openTemporaryChat').addEventListener('click', () => {
53- toastr.info('This button does nothing at the moment. Try again later.');
54+ void newAssistantChat();
5455 });
5556 chatElement.append(fragment.firstChild);
5657 } catch (error) {