1
0

Pass window object to streamLLMCommitMessages in main.js

This commit is contained in:
2025-05-26 03:02:02 +02:00
parent d0a802798a
commit 40655e4b1c

View File

@@ -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;