Refactor autoCommit to handle firstCandidateBirthday
This commit is contained in:
15
main.js
15
main.js
@@ -638,19 +638,7 @@ async function autoCommit(folderPath, message) {
|
|||||||
folders[idx].llmCandidates = folders[idx].llmCandidates || [];
|
folders[idx].llmCandidates = folders[idx].llmCandidates || [];
|
||||||
folders[idx].llmCandidates.push(newHead);
|
folders[idx].llmCandidates.push(newHead);
|
||||||
if(folders[idx].llmCandidates.length == 1){
|
if(folders[idx].llmCandidates.length == 1){
|
||||||
|
folders[idx].firstCandidateBirthday
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//HIER SOLL DIE DATE-TIME INFORMATION VOM JETZIGEN MOMENT IN DAS FOLDER OBJEKT GESPEICHERT WERDEN
|
|
||||||
debug('[autoCommit] Erster Commit aufgenommen. Automatischer message-rewrite spätestens: ');
|
debug('[autoCommit] Erster Commit aufgenommen. Automatischer message-rewrite spätestens: ');
|
||||||
}
|
}
|
||||||
folders[idx].lastHeadHash = newHead;
|
folders[idx].lastHeadHash = newHead;
|
||||||
@@ -663,6 +651,7 @@ async function autoCommit(folderPath, message) {
|
|||||||
folders[idx].linesChanged = 0;
|
folders[idx].linesChanged = 0;
|
||||||
const cands = folders[idx].llmCandidates;
|
const cands = folders[idx].llmCandidates;
|
||||||
folders[idx].llmCandidates = [];
|
folders[idx].llmCandidates = [];
|
||||||
|
folders[idx].firstCandidateBirthday = null;
|
||||||
await runLLMCommitRewrite(folderPath, cands);
|
await runLLMCommitRewrite(folderPath, cands);
|
||||||
//folders[idx].linesChanged = 0; // !!!!!!!!!!!!!!!!!!!! needs logic to handle several llm runs called at the same time
|
//folders[idx].linesChanged = 0; // !!!!!!!!!!!!!!!!!!!! needs logic to handle several llm runs called at the same time
|
||||||
//folders[idx].llmCandidates = [];
|
//folders[idx].llmCandidates = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user