From 2eb45ac67f322f9ff04d83e53f6b20cc59563e44 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 8 Dec 2025 14:11:23 +0100 Subject: [PATCH] auto-git: [change] main.js --- main.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index 279ed45..9e6e032 100755 --- a/main.js +++ b/main.js @@ -1298,16 +1298,10 @@ async function runLLMCommitRewrite(folderObj, win) { const buffer = folders[idx].llmBuffer || []; if (error) { const errMsg = String(error.message || error); - if (errMsg.includes('LLM prompt too large') || errMsg.includes('aborted')) { - // Skip this batch: drop candidates to unblock pipeline - debug(`[runLLMCommitRewrite] Dropping candidates for ${folderPath} due to error: ${errMsg}`); - folders[idx].llmCandidates = buffer; // keep only buffered, newer commits - folders[idx].firstCandidateBirthday = buffer.length ? Date.now() : null; - } else { - // Requeue original candidates plus anything that arrived during rewrite - folders[idx].llmCandidates = hashes.concat(buffer); - folders[idx].firstCandidateBirthday = originalBirthday || (folders[idx].llmCandidates.length ? Date.now() : null); - } + // Drop this batch on any error to avoid getting stuck; keep buffered new commits + debug(`[runLLMCommitRewrite] Dropping candidates for ${folderPath} due to error: ${errMsg}`); + folders[idx].llmCandidates = buffer; + folders[idx].firstCandidateBirthday = buffer.length ? Date.now() : null; } else { // Promote buffered commits to become the next batch folders[idx].llmCandidates = buffer;