WI: Fix adding empty text to recursion buffer

0088333ebf52376f3e83f4f76b8dc05a87283e24

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

1 files changed, +2 -0Showing whitespace changes
public/scripts/world-info.js+2 -0
@@ -4264,8 +4264,10 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
42644264 if (scanState) {
42654265 const text = successfulNewEntriesForRecursion
42664266 .map(x => x.content).join('\n');
4267+ if (text) {
42674268 buffer.addRecurse(text);
42684269 allActivatedText = (text + '\n' + allActivatedText);
4270+ }
42694271 } else {
42704272 logNextState('[WI] Scan done. No new entries to prompt. Stopping.');
42714273 }