Add folder update logic in main.js
This commit is contained in:
6
main.js
6
main.js
@@ -481,6 +481,12 @@ async function runLLMCommitRewrite(folderObj) {
|
||||
folderObj.llmCandidates = [];
|
||||
folderObj.firstCandidateBirthday = null;
|
||||
folderObj.linesChanged = 0;
|
||||
const folders = store.get('folders') || [];
|
||||
const idx = folders.findIndex(f => f.path === folderObj.path);
|
||||
if (idx !== -1) {
|
||||
folders[idx] = folderObj;
|
||||
store.set('folders', folders);
|
||||
}
|
||||
const prompt = await generateLLMCommitMessages(folderPath, hashes);
|
||||
const llmRaw = await streamLLMCommitMessages(prompt, chunk => process.stdout.write(chunk));
|
||||
const commitList = parseLLMCommitMessages(llmRaw);
|
||||
|
||||
Reference in New Issue
Block a user