From 83d049a46540ea933db4eb724cb21fc81e33a7ee Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Mon, 24 Aug 2026 17:20:44 -0400 Subject: [PATCH] fix: skip the sidebar refresh when a chat is dropped back where it already is (#28664) --- src/lib/components/layout/Sidebar.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 16aa3fab7d..0df40c3c2a 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -1433,6 +1433,10 @@ if (chat) { console.log(chat); + if (!chat.folder_id && !chat.pinned) { + return; + } + if (chat.folder_id) { const res = await updateChatFolderIdById( localStorage.token,