From 40655e4b1ca96aae206fe6a9a839f9d2ff399117 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 03:02:02 +0200 Subject: [PATCH] Pass window object to streamLLMCommitMessages in main.js --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 44b2fc6..2ae91c5 100644 --- a/main.js +++ b/main.js @@ -498,7 +498,7 @@ async function runLLMCommitRewrite(folderObj, win) { store.set('folders', folders); } const prompt = await generateLLMCommitMessages(folderPath, hashes); - const llmRaw = await streamLLMCommitMessages(prompt, chunk => process.stdout.write(chunk)); + const llmRaw = await streamLLMCommitMessages(prompt, chunk => process.stdout.write(chunk), win); const commitList = parseLLMCommitMessages(llmRaw); const messageMap = {}; for (const entry of commitList) messageMap[entry.commit] = entry.newMessage;