Change min activation scan to full increased range
| @@ -170,7 +170,7 @@ class WorldInfoBuffer { | ||
| 170 | 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 | 175 | #startDepth = 0; |
| 176 | 176 | |
| @@ -310,10 +310,9 @@ class WorldInfoBuffer { | ||
| 310 | 310 | } |
| 311 | 311 | |
| 312 | 312 | /** |
| 313 | 313 | * Increments skew and setsto startDepthadvance tothe previousscan depthrange. |
| 314 | 314 | */ |
| 315 | 315 | advanceScanPositionadvanceScan() { |
| 316 | - this.#startDepth = this.getDepth(); | |
| 317 | 316 | this.#skew++; |
| 318 | 317 | } |
| 319 | 318 | |
| @@ -3885,7 +3884,7 @@ async function checkWorldInfo(chat, maxContext, isDryRun) { | ||
| 3885 | 3884 | if (!over_max) { |
| 3886 | 3885 | console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), advancing depth to ${buffer.getDepth() + 1} and checking again`); |
| 3887 | 3886 | nextScanState = scan_state.MIN_ACTIVATIONS; // loop |
| 3888 | 3887 | buffer.advanceScanPositionadvanceScan(); |
| 3889 | 3888 | } else { |
| 3890 | 3889 | console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), but reached on of depth. Stopping`); |
| 3891 | 3890 | } |