[GH-ISSUE #518] [Issue]: Triggered lorebook entries do not appear in assembled context #237

Closed
opened 2026-10-20 17:26:37 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cha1latte on GitHub (May 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/518

Originally assigned to: @cha1latte on GitHub.

Summary

Triggered lorebook/world info entries can show as active but not appear in the assembled prompt context. The Active World Info panel reports multiple active entries and a higher token count, while the assembled prompt's World Info section only includes a much smaller token count and appears to include only the constant entry.

Expected behavior

Triggered lorebook/world info entries that appear in Active World Info should be included in the assembled prompt context, subject to the normal lorebook ordering, budget, and insertion rules.

Actual behavior

The Active World Info panel shows 5 active entries at about 1,364 tokens, including one constant entry and several triggered entries. The assembled prompt shows the World Info section at only about 635 tokens. The reporter notes that the only entry making it into the prompt appears to be the single constant entry.

Visible screenshot details:

  • Assembled Prompt shows 17 sections and about 8,428 estimated tokens.
  • World Info section shows about 635 tokens.
  • Active World Info shows 5 active entries and about 1,364 tokens.
  • Active entries shown include:
    • Setting Directives, marked constant.
    • Nyanto, keys: nyanto, cat, cats, feline, felines.
    • Amari Wei, keys: amari, wei, patch job, sayaka's friend.
    • Rin Togakushi, keys: rin, togakushi, needle storm.
    • ENCOUNTER: The Free Sparks, keys include cafeteria, dining hall, food court, breakfast, lunch.

Steps to reproduce

  1. On Windows Installer v1.5.8, open Roleplay mode.
  2. Use a lorebook/world info setup with one constant entry and multiple keyword-triggered entries.
  3. Trigger several lorebook/world info entries so they appear in Active World Info.
  4. Open the assembled prompt/context viewer.
  5. Compare the Active World Info token count and entries against the assembled prompt's World Info section.

Environment

  • Marinara Engine version: v1.5.8
  • Install type: Windows Installer
  • OS + version: Windows 10
  • Browser or app shell: Not specified.
  • Mode: Roleplay mode

Logs, screenshots, or video

Discord source thread:
https://discord.com/channels/1417099416812392641/1501798052900503642

Image Image

Additional context

The reporter specifically noted: "Prompt says only 635 tokens fired off when the Active World Info states a much higher amount. To note, the only entry making it into the prompt is my only constant entry."

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/518 Originally assigned to: @cha1latte on GitHub. ## Summary Triggered lorebook/world info entries can show as active but not appear in the assembled prompt context. The Active World Info panel reports multiple active entries and a higher token count, while the assembled prompt's World Info section only includes a much smaller token count and appears to include only the constant entry. ## Expected behavior Triggered lorebook/world info entries that appear in Active World Info should be included in the assembled prompt context, subject to the normal lorebook ordering, budget, and insertion rules. ## Actual behavior The Active World Info panel shows 5 active entries at about 1,364 tokens, including one constant entry and several triggered entries. The assembled prompt shows the World Info section at only about 635 tokens. The reporter notes that the only entry making it into the prompt appears to be the single constant entry. Visible screenshot details: - Assembled Prompt shows 17 sections and about 8,428 estimated tokens. - World Info section shows about 635 tokens. - Active World Info shows 5 active entries and about 1,364 tokens. - Active entries shown include: - Setting Directives, marked constant. - Nyanto, keys: nyanto, cat, cats, feline, felines. - Amari Wei, keys: amari, wei, patch job, sayaka's friend. - Rin Togakushi, keys: rin, togakushi, needle storm. - ENCOUNTER: The Free Sparks, keys include cafeteria, dining hall, food court, breakfast, lunch. ## Steps to reproduce 1. On Windows Installer v1.5.8, open Roleplay mode. 2. Use a lorebook/world info setup with one constant entry and multiple keyword-triggered entries. 3. Trigger several lorebook/world info entries so they appear in Active World Info. 4. Open the assembled prompt/context viewer. 5. Compare the Active World Info token count and entries against the assembled prompt's World Info section. ## Environment - Marinara Engine version: v1.5.8 - Install type: Windows Installer - OS + version: Windows 10 - Browser or app shell: Not specified. - Mode: Roleplay mode ## Logs, screenshots, or video Discord source thread: https://discord.com/channels/1417099416812392641/1501798052900503642 <img width="740" height="266" alt="Image" src="https://github.com/user-attachments/assets/3815e045-ee72-4c1c-beef-c6b2206b70ab" /> <img width="305" height="301" alt="Image" src="https://github.com/user-attachments/assets/196a6d23-6c89-4073-a9e0-552545917737" /> ## Additional context The reporter specifically noted: "Prompt says only 635 tokens fired off when the Active World Info states a much higher amount. To note, the only entry making it into the prompt is my only constant entry." ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:37 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#237
No description provided.