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.
This commit is contained in:
Wolfsblvt
2024-09-04 22:39:32 +02:00
parent 58e6ae2fc5
commit 0284698428

View File

@@ -3813,12 +3813,12 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
}
// Only use checks for recursion flags if the scan step was activated by recursion
if (scanState !== scan_state.RECURSION && entry.delayUntilRecursion) {
if (scanState !== scan_state.RECURSION && entry.delayUntilRecursion && !isSticky) {
log('suppressed by delay until recursion');
continue;
}
if (scanState === scan_state.RECURSION && world_info_recursive && entry.excludeRecursion) {
if (scanState === scan_state.RECURSION && world_info_recursive && entry.excludeRecursion && !isSticky) {
log('suppressed by exclude recursion');
continue;
}