Increase progress bar estimate to account for rate-limit retry waits

25s per wave (was 10s) gives headroom for occasional 65s pauses.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 21:55:17 -04:00
parent 26b8244422
commit 47f186384f
@@ -11,11 +11,11 @@
if (!form || !btn || !overlay) return;
// Estimate total seconds based on item count.
// Haiku: 2 concurrent batches, ~10s per wave.
// Haiku: 2 concurrent batches, ~25s per wave (includes occasional rate-limit waits).
function estimateDuration(itemCount) {
var batches = Math.max(1, Math.ceil(itemCount / 25));
var waves = Math.ceil(batches / 2);
return Math.max(15, waves * 10);
return Math.max(30, waves * 25);
}
// Messages keyed to approximate progress milestones (0100).