From 0d57f7ea4fb5ff505631d6194c48efc0b9ea195b Mon Sep 17 00:00:00 2001 From: Aisu Wata Date: Thu, 4 Apr 2024 15:19:39 -0300 Subject: [PATCH] fix: removed `recurseReset()` --- public/scripts/world-info.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index ca632fc6d..4acdb225f 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -204,13 +204,6 @@ class WorldInfoBuffer { this.#recurseBuffer.push(message); } - /** - * Empties recursion buffer. - */ - recurseReset() { - this.#recurseBuffer = []; - } - /** * Increments skew and sets startDepth to previous depth. */ @@ -2236,9 +2229,6 @@ async function checkWorldInfo(chat, maxContext) { } if (needsToScan) { - // If you're here from a previous loop, clear recurse buffer - buffer.recurseReset(); - const text = newEntries .filter(x => !failedProbabilityChecks.has(x)) .filter(x => !x.preventRecursion) @@ -2258,8 +2248,6 @@ async function checkWorldInfo(chat, maxContext) { if (!over_max) { needsToScan = true; // loop buffer.advanceScanPosition(); - // No recurse was added, since `!needsToScan`, but clear previous one since it was checked already - buffer.recurseReset(); } } }