Fix WI sticky possibly not sticking on recursion - When a WI entry has sticky, and inclusion group and "delay until recursion" set, another entry from the same group might prevent the sticky from activating. This is fixed here.

0284698428753e7bf0eb447846dd4d8d2bc27f4a

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +2 -2Ignore whitespace
public/scripts/world-info.js+2 -2
@@ -3813,12 +3813,12 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
3813 }3813 }
38143814
3815 // Only use checks for recursion flags if the scan step was activated by recursion3815 // Only use checks for recursion flags if the scan step was activated by recursion
3816 if (scanState !== scan_state.RECURSION && entry.delayUntilRecursion) {3816 if (scanState !== scan_state.RECURSION && entry.delayUntilRecursion && !isSticky) {
3817 log('suppressed by delay until recursion');3817 log('suppressed by delay until recursion');
3818 continue;3818 continue;
3819 }3819 }
38203820
3821 if (scanState === scan_state.RECURSION && world_info_recursive && entry.excludeRecursion) {3821 if (scanState === scan_state.RECURSION && world_info_recursive && entry.excludeRecursion && !isSticky) {
3822 log('suppressed by exclude recursion');3822 log('suppressed by exclude recursion');
3823 continue;3823 continue;
3824 }3824 }