From 67fea4b6f97e4203260e4dfa3a02825ebbd8dffe Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 06:57:53 +0200 Subject: [PATCH] auto-git: [change] main.js --- main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 0246a4e..8929ffc 100644 --- a/main.js +++ b/main.js @@ -567,12 +567,12 @@ async function autoCommit(folderPath, message) { const threshold = store.get('intelligentCommitThreshold') || 10; if (folders[idx].linesChanged >= threshold) { debug('Congratulations! You changed enough lines of code :)'); - //folders[idx].linesChanged = 0; - //const cands = folders[idx].llmCandidates; - //folders[idx].llmCandidates = []; - await runLLMCommitRewrite(folderPath, cands); - folders[idx].linesChanged = 0; // !!!!!!!!!!!!!!!!!!!! needs logic to handle several llm runs called at the same time + folders[idx].linesChanged = 0; + const cands = folders[idx].llmCandidates; folders[idx].llmCandidates = []; + await runLLMCommitRewrite(folderPath, cands); + //folders[idx].linesChanged = 0; // !!!!!!!!!!!!!!!!!!!! needs logic to handle several llm runs called at the same time + //folders[idx].llmCandidates = []; store.set('folders', folders); } store.set('folders', folders);