fix: don't clear pendingText on read to survive auth remount

This commit is contained in:
CREDO23 2026-03-27 19:10:15 +02:00
parent af2129ebb6
commit f9a6e648cf

View file

@ -99,9 +99,7 @@ export function registerQuickAsk(): void {
}
ipcMain.handle(IPC_CHANNELS.QUICK_ASK_TEXT, () => {
const text = pendingText;
pendingText = '';
return text;
return pendingText;
});
ipcMain.handle(IPC_CHANNELS.REPLACE_TEXT, async (_event, text: string) => {