From d8872ac07b96367e65ca128e4db4997796564d8f Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 16 Nov 2026 14:41:12 +0100 Subject: [PATCH] fix: tab changes in a chat stop being saved once its tabs are back to how they were (#34539) Once a change left a chat's tabs exactly as they were last saved, for example by opening a New File tab and closing it again, no later tab change in that chat was saved until the page was reloaded. Tabs opened, closed or rearranged after that were gone on the next visit. Every tab change is saved again now. Fixes #34538 --- src/lib/stores/chatViewStates.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/stores/chatViewStates.ts b/src/lib/stores/chatViewStates.ts index 2ca577a2ed..219415efc6 100644 --- a/src/lib/stores/chatViewStates.ts +++ b/src/lib/stores/chatViewStates.ts @@ -169,10 +169,9 @@ export async function flushChatView(entry: Entry): Promise { } catch (error) { entry.error = `Layout changes not saved. ${String(error)}`; } finally { - entry.write = undefined; notify(); } - })(); + })().finally(() => (entry.write = undefined)); return entry.write; }