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
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-16 22:41:12 +09:00
1 parent ed3bacab50
commit d8872ac07b
1 file changed
+1 -2
+1 -2
View File
@@ -169,10 +169,9 @@ export async function flushChatView(entry: Entry): Promise<void> {
} catch (error) {
entry.error = `Layout changes not saved. ${String(error)}`;
} finally {
entry.write = undefined;
notify();
}
})();
})().finally(() => (entry.write = undefined));
return entry.write;
}