Merge pull request #2773 from SillyTavern/fix-wi-sticky-on-recursion Fix WI sticky possibly not sticking with delay until recursion when inclusion group is set too

a82617be5bb1bd03a3410d56d5e3eb9a31c5220c

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
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 }