Add check for rewriteInProgress in main.js
This commit is contained in:
2
main.js
2
main.js
@@ -1509,7 +1509,7 @@ async function main() {
|
|||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
|
|
||||||
folders.forEach(folderObj => {
|
folders.forEach(folderObj => {
|
||||||
if (folderObj.firstCandidateBirthday != null) {
|
if (folderObj.firstCandidateBirthday != null && !folderObj.rewriteInProgress) {
|
||||||
const elapsedMin = (now - folderObj.firstCandidateBirthday) / 1000 / 60;
|
const elapsedMin = (now - folderObj.firstCandidateBirthday) / 1000 / 60;
|
||||||
if (elapsedMin >= minutesThreshold) {
|
if (elapsedMin >= minutesThreshold) {
|
||||||
runLLMCommitRewrite(folderObj, win);
|
runLLMCommitRewrite(folderObj, win);
|
||||||
|
|||||||
Reference in New Issue
Block a user