Change min activation scan to full increased range
| @@ -170,7 +170,7 @@ class WorldInfoBuffer { | |||
| 170 | #skew = 0; | 170 | #skew = 0; |
| 171 | 171 | ||
| 172 | /** | 172 | /** |
| 173 | * @type {number} The starting depth of the global scan depth. Incremented by "min activations" feature to not repeat scans. When > 0 it means a complete scan was done up to #startDepth already, and `advanceScanPosition` was called. | 173 | * @type {number} The starting depth of the global scan depth. |
| 174 | */ | 174 | */ |
| 175 | #startDepth = 0; | 175 | #startDepth = 0; |
| 176 | 176 | ||
| @@ -310,10 +310,9 @@ class WorldInfoBuffer { | |||
| 310 | } | 310 | } |
| 311 | 311 | ||
| 312 | /** | 312 | /** |
| 313 | * Increments skew and sets startDepth to previous depth. | 313 | * Increments skew to advance the scan range. |
| 314 | */ | 314 | */ |
| 315 | advanceScanPosition() { | 315 | advanceScan() { |
| 316 | this.#startDepth = this.getDepth(); | ||
| 317 | this.#skew++; | 316 | this.#skew++; |
| 318 | } | 317 | } |
| 319 | 318 | ||
| @@ -3885,7 +3884,7 @@ async function checkWorldInfo(chat, maxContext, isDryRun) { | |||
| 3885 | if (!over_max) { | 3884 | if (!over_max) { |
| 3886 | console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), advancing depth to ${buffer.getDepth() + 1} and checking again`); | 3885 | console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), advancing depth to ${buffer.getDepth() + 1} and checking again`); |
| 3887 | nextScanState = scan_state.MIN_ACTIVATIONS; // loop | 3886 | nextScanState = scan_state.MIN_ACTIVATIONS; // loop |
| 3888 | buffer.advanceScanPosition(); | 3887 | buffer.advanceScan(); |
| 3889 | } else { | 3888 | } else { |
| 3890 | console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), but reached on of depth. Stopping`); | 3889 | console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), but reached on of depth. Stopping`); |
| 3891 | } | 3890 | } |