From 49bfe0c04f0e648ca5634f719c436b202333bc86 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 22:02:02 +0200 Subject: [PATCH] Refactor autoCommit to handle firstCandidateBirthday --- main.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/main.js b/main.js index 2fbe832..d47b762 100644 --- a/main.js +++ b/main.js @@ -638,19 +638,7 @@ async function autoCommit(folderPath, message) { folders[idx].llmCandidates = folders[idx].llmCandidates || []; folders[idx].llmCandidates.push(newHead); if(folders[idx].llmCandidates.length == 1){ - - - - - - - - - - - - - //HIER SOLL DIE DATE-TIME INFORMATION VOM JETZIGEN MOMENT IN DAS FOLDER OBJEKT GESPEICHERT WERDEN + folders[idx].firstCandidateBirthday debug('[autoCommit] Erster Commit aufgenommen. Automatischer message-rewrite spätestens: '); } folders[idx].lastHeadHash = newHead; @@ -663,6 +651,7 @@ async function autoCommit(folderPath, message) { folders[idx].linesChanged = 0; const cands = folders[idx].llmCandidates; folders[idx].llmCandidates = []; + folders[idx].firstCandidateBirthday = null; await runLLMCommitRewrite(folderPath, cands); //folders[idx].linesChanged = 0; // !!!!!!!!!!!!!!!!!!!! needs logic to handle several llm runs called at the same time //folders[idx].llmCandidates = [];