From 2286083b9b40ec971f87c83cd7b560cd16eca593 Mon Sep 17 00:00:00 2001 From: m0rtus59 Date: Tue, 10 Nov 2026 16:16:56 +0500 Subject: [PATCH] Bound Queue prompt extraction request sizes --- js/queue/queueService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/queue/queueService.js b/js/queue/queueService.js index 6cb9535..c49989a 100644 --- a/js/queue/queueService.js +++ b/js/queue/queueService.js @@ -39,7 +39,7 @@ async function updatePromptSearchTexts(entries) { let batch = []; let batchSize = 0; for (const entry of pending) { - const itemSize = JSON.stringify(entry).length; + const itemSize = JSON.stringify(entry).length * 3; // Conservative UTF-8 byte estimate if (batch.length > 0 && (batch.length >= 32 || batchSize + itemSize > 512 * 1024)) { batches.push(batch); batch = [];