Timothy J. Baek 9 mesi fa
parent
commit
623aa08b9e
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/lib/components/chat/ModelSelector/Selector.svelte

+ 4 - 0
src/lib/components/chat/ModelSelector/Selector.svelte

@@ -528,6 +528,10 @@
 						on:click={async () => {
 						on:click={async () => {
 							temporaryChatEnabled.set(!$temporaryChatEnabled);
 							temporaryChatEnabled.set(!$temporaryChatEnabled);
 							await goto('/');
 							await goto('/');
+							const newChatButton = document.getElementById('new-chat-button');
+							setTimeout(() => {
+								newChatButton?.click();
+							}, 0);
 							show = false;
 							show = false;
 						}}
 						}}
 					>
 					>