From 4761d6406c084ef703b64215da9379e84632c8d5 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 22 Mar 2026 10:48:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20await=20clearHistory()=20?= =?UTF-8?q?to=20ensure=20write=20completes=20before=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clearHistory() was the only configStore write call not awaited in its IPC handler. The renderer received 'success' before the file write completed — closing the app immediately after could leave history intact. Co-Authored-By: Claude Opus 4.6 (1M context) --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 5481c3b..0d86502 100644 --- a/main.js +++ b/main.js @@ -776,8 +776,8 @@ ipcMain.handle('finish-after-active', () => { return true; }); -ipcMain.handle('clear-history', () => { - configStore.clearHistory(); +ipcMain.handle('clear-history', async () => { + await configStore.clearHistory(); return true; });