[GH-ISSUE #7325] [Issue]: Lorebook entries skipped when token limit is disabled #4085

Closed
opened 2026-10-21 06:10:16 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7325

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Lorebook entries are reported as skipped even though the lorebook token limit and the lorebook's separate limit are disabled. Generated replies may consequently contradict information contained in the lorebook.

Expected behavior

When lorebook limits are disabled, applicable lorebook entries should be included rather than skipped, and generated replies should reflect their information.

Actual behavior

Marinara Engine reports that lorebook entries are being skipped. One reply produced content contrary to known lorebook information, suggesting that the relevant entries were not included.

Steps to reproduce

  1. Use a lorebook whose separate token limit is disabled.
  2. Disable the lorebook token limit for the chat.
  3. Generate messages in the chat.
  4. Observe that Marinara Engine reports skipped lorebook entries and may generate a reply that contradicts lorebook information.

Environment

  • Marinara Engine version: 2.5.0 (build 2.5.0+1fadc344875c, commit 1fadc34487)
  • Install type: termux
  • OS + version: Server: Android / Termux 6.12.38-android16-5-g0de425e73a77-ab14804637-4k (arm64); Client: Android 16
  • Browser or app shell: Android WebView; Chrome/153.0.8010.36; MarinaraEngine/Android

Logs, screenshots, or video

Screenshots showing the disabled limit and skipped-entry warning: https://cdn.discordapp.com/attachments/1557963924702367744/1557963925616857138/Screenshot_20261009_045129_com_marinara_engine_MainActivity_edit_536512080316428.jpg?ex=6ac9b679&is=6ac864f9&hm=2c155b55f11d226350f000e4b2d5aad3844b0886d2e5669bb9e5221b8d8b4640& and https://cdn.discordapp.com/attachments/1557963924702367744/1557963926287679658/Screenshot_20261009_045115_com_marinara_engine_MainActivity.jpg?ex=6ac9b679&is=6ac864f9&hm=4744d0ba53d02ef8d6fa8378674aa2b88424dd7c98e4f83af468d05f89794620&. No textual error logs were provided.

Additional context

The limits had reportedly been disabled since the chat began, and the lorebook's separate limit had been disabled previously. The same lorebook is used across many chats. Active connection: glm flash; provider: OpenRouter; model: z-ai/glm-5.3-flash. It remains unconfirmed whether the skipped entries are caused by the lorebook budget or the model's configured budget.

Discord thread: Lorebook limit broken
Discord thread link: https://discord.com/channels/1417099416812392641/1557963924702367744
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (9 messages)
[2026-10-09T03:52:25.219Z] Leytra: I have the lorebook token limit disabled.
I am still having it tell me it's skipping lore entries.

[attached image 1: https://cdn.discordapp.com/attachments/1557963924702367744/1557963925616857138/Screenshot_20261009_045129_com_marinara_engine_MainActivity_edit_536512080316428.jpg?ex=6ac9b679&is=6ac864f9&hm=2c155b55f11d226350f000e4b2d5aad3844b0886d2e5669bb9e5221b8d8b4640&]
[attached image 2: https://cdn.discordapp.com/attachments/1557963924702367744/1557963926287679658/Screenshot_20261009_045115_com_marinara_engine_MainActivity.jpg?ex=6ac9b679&is=6ac864f9&hm=4744d0ba53d02ef8d6fa8378674aa2b88424dd7c98e4f83af468d05f89794620&]
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557963924702367744]

[2026-10-09T03:52:26.681Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557963930834567179]

[2026-10-09T03:52:43.293Z] Leytra: ` ` `
Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0+1fadc344875c
Commit: 1fadc344875c
Server OS: Android / Termux 6.12.38-android16-5-g0de425e73a77-ab14804637-4k (arm64)
Server memory: heap 166.3 / 8288 MiB; RSS 263.8 MiB
Background wake lock: acquired
Last detected freeze: ~528s suspension, thawed at 2026-10-07T07:35:14.218Z
Previous session: shut down cleanly at 2026-10-07T07:11:56.375Z
Sessions ended without shutdown: 10 recorded
Client OS: Android 16
Browser / app shell: Mozilla/5.0 (Linux; Android 16; PNM-N49 Build/HONORPNM-N49; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/153.0.8010.36 Safari/537.36 MarinaraEngine/Android
Client runtime: {"build":"2.5.0+1fadc344875c","page":"muzurohy-jcy53j9p","persistence":"local","navigation":"navigate","standalone":false,"view":[856,0,856,0],"events":[{"at":1791514078269,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791514243265,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791515618501,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791515738645,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791516141367,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]}]}
GPU: Adreno (TM) 840
Server GPU: no NVIDIA GPU detected
Main sidecar: not configured
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured
Active connection: glm flash
Connection provider: openrouter
LLM model: z-ai/glm-5.3-flash
Mari last acted on: none recorded this session
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557964000510218301]

[2026-10-09T04:02:15.960Z] Kakekay: Have you swiped or generated a new message? The error remains until a new message is generated.
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557966402449580065]

[2026-10-09T04:11:07.824Z] Leytra: I've had the lorebook limit off since I started this chat
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557968633249009700]

[2026-10-09T04:11:50.656Z] Leytra: I only just realised it was being weird when a reply produced some utter nonsense completely contrary to something I knew was lorebooked.
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557968812899311727]

[2026-10-09T05:17:07.026Z] Kakekay: check the lorebook itself? It has a separate limit
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557985239345795174]

[2026-10-09T05:22:37.893Z] Leytra: Disabled that ages ago, it's a lorebook I use for loads of chats
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557986627102576762]

[2026-10-09T07:17:42.974Z] Marinara: Are you sure this is lorebook budget and not model’s set budget?
[Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1558015589111300138]

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 @SpicyMarinara on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7325 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Lorebook entries are reported as skipped even though the lorebook token limit and the lorebook's separate limit are disabled. Generated replies may consequently contradict information contained in the lorebook. ## Expected behavior When lorebook limits are disabled, applicable lorebook entries should be included rather than skipped, and generated replies should reflect their information. ## Actual behavior Marinara Engine reports that lorebook entries are being skipped. One reply produced content contrary to known lorebook information, suggesting that the relevant entries were not included. ## Steps to reproduce 1. Use a lorebook whose separate token limit is disabled. 2. Disable the lorebook token limit for the chat. 3. Generate messages in the chat. 4. Observe that Marinara Engine reports skipped lorebook entries and may generate a reply that contradicts lorebook information. ## Environment - Marinara Engine version: 2.5.0 (build 2.5.0+1fadc344875c, commit 1fadc344875c) - Install type: termux - OS + version: Server: Android / Termux 6.12.38-android16-5-g0de425e73a77-ab14804637-4k (arm64); Client: Android 16 - Browser or app shell: Android WebView; Chrome/153.0.8010.36; MarinaraEngine/Android ## Logs, screenshots, or video Screenshots showing the disabled limit and skipped-entry warning: https://cdn.discordapp.com/attachments/1557963924702367744/1557963925616857138/Screenshot_20261009_045129_com_marinara_engine_MainActivity_edit_536512080316428.jpg?ex=6ac9b679&is=6ac864f9&hm=2c155b55f11d226350f000e4b2d5aad3844b0886d2e5669bb9e5221b8d8b4640& and https://cdn.discordapp.com/attachments/1557963924702367744/1557963926287679658/Screenshot_20261009_045115_com_marinara_engine_MainActivity.jpg?ex=6ac9b679&is=6ac864f9&hm=4744d0ba53d02ef8d6fa8378674aa2b88424dd7c98e4f83af468d05f89794620&. No textual error logs were provided. ## Additional context The limits had reportedly been disabled since the chat began, and the lorebook's separate limit had been disabled previously. The same lorebook is used across many chats. Active connection: glm flash; provider: OpenRouter; model: z-ai/glm-5.3-flash. It remains unconfirmed whether the skipped entries are caused by the lorebook budget or the model's configured budget. Discord thread: Lorebook limit broken Discord thread link: https://discord.com/channels/1417099416812392641/1557963924702367744 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (9 messages)</summary> ```text [2026-10-09T03:52:25.219Z] Leytra: I have the lorebook token limit disabled. I am still having it tell me it's skipping lore entries. [attached image 1: https://cdn.discordapp.com/attachments/1557963924702367744/1557963925616857138/Screenshot_20261009_045129_com_marinara_engine_MainActivity_edit_536512080316428.jpg?ex=6ac9b679&is=6ac864f9&hm=2c155b55f11d226350f000e4b2d5aad3844b0886d2e5669bb9e5221b8d8b4640&] [attached image 2: https://cdn.discordapp.com/attachments/1557963924702367744/1557963926287679658/Screenshot_20261009_045115_com_marinara_engine_MainActivity.jpg?ex=6ac9b679&is=6ac864f9&hm=4744d0ba53d02ef8d6fa8378674aa2b88424dd7c98e4f83af468d05f89794620&] [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557963924702367744] [2026-10-09T03:52:26.681Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557963930834567179] [2026-10-09T03:52:43.293Z] Leytra: ` ` ` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0+1fadc344875c Commit: 1fadc344875c Server OS: Android / Termux 6.12.38-android16-5-g0de425e73a77-ab14804637-4k (arm64) Server memory: heap 166.3 / 8288 MiB; RSS 263.8 MiB Background wake lock: acquired Last detected freeze: ~528s suspension, thawed at 2026-10-07T07:35:14.218Z Previous session: shut down cleanly at 2026-10-07T07:11:56.375Z Sessions ended without shutdown: 10 recorded Client OS: Android 16 Browser / app shell: Mozilla/5.0 (Linux; Android 16; PNM-N49 Build/HONORPNM-N49; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/153.0.8010.36 Safari/537.36 MarinaraEngine/Android Client runtime: {"build":"2.5.0+1fadc344875c","page":"muzurohy-jcy53j9p","persistence":"local","navigation":"navigate","standalone":false,"view":[856,0,856,0],"events":[{"at":1791514078269,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791514243265,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791515618501,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791515738645,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]},{"at":1791516141367,"page":"muzurohy-jcy53j9p","build":"2.5.0+1fadc344875c","kind":"message-edited","view":[856,0,856,0]}]} GPU: Adreno (TM) 840 Server GPU: no NVIDIA GPU detected Main sidecar: not configured Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured Active connection: glm flash Connection provider: openrouter LLM model: z-ai/glm-5.3-flash Mari last acted on: none recorded this session ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557964000510218301] [2026-10-09T04:02:15.960Z] Kakekay: Have you swiped or generated a new message? The error remains until a new message is generated. [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557966402449580065] [2026-10-09T04:11:07.824Z] Leytra: I've had the lorebook limit off since I started this chat [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557968633249009700] [2026-10-09T04:11:50.656Z] Leytra: I only just realised it was being weird when a reply produced some utter nonsense completely contrary to something I knew was lorebooked. [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557968812899311727] [2026-10-09T05:17:07.026Z] Kakekay: check the lorebook itself? It has a separate limit [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557985239345795174] [2026-10-09T05:22:37.893Z] Leytra: Disabled that ages ago, it's a lorebook I use for loads of chats [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1557986627102576762] [2026-10-09T07:17:42.974Z] Marinara: Are you sure this is lorebook budget and not model’s set budget? [Discord message: https://discord.com/channels/1417099416812392641/1557963924702367744/1558015589111300138] ``` </details> ## 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-21 06:10:16 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 9, 2026):

Fixed on staging by #7329.

<!-- gh-comment-id:6079798729 --> @SpicyMarinara commented on GitHub (Oct 9, 2026): Fixed on staging by #7329.
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#4085
No description provided.