1
0

Refactor autoCommit to handle firstCandidateBirthday

This commit is contained in:
2025-05-25 22:02:02 +02:00
parent 991306365a
commit 49bfe0c04f

15
main.js
View File

@@ -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 = [];