diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index c8d817151..8c151b783 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -122,6 +122,8 @@ class="flex-grow flex justify-between rounded-xl px-3.5 py-2 hover:bg-gray-900 transition" href="/" on:click={async () => { + selectedChatId = null; + await goto('/'); const newChatButton = document.getElementById('new-chat-button'); setTimeout(() => { @@ -164,6 +166,10 @@ { + selectedChatId = null; + chatId.set(''); + }} >
{ + selectedChatId = null; + chatId.set(''); + }} >
{ + selectedChatId = null; + chatId.set(''); + }} >
- -
@@ -385,7 +382,9 @@
{#if chatTitleEditId === chat.id}