[GH-ISSUE #4951] [Issue]: Deleted lorebook remains in the active context #2749

Closed
opened 2026-10-21 05:54:22 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

A lorebook deleted through the lorebook tab remains in the RP chat's active context. It appears as "Lorebook" with numbers appended and persists after regenerating a response.

Expected behavior

Deleting a lorebook should remove it from the active context, including after generating a new response.

Actual behavior

The deleted lorebook remains in the active context and is displayed as "Lorebook" with numbers appended, even after regenerating a response.

Steps to reproduce

  1. Drag a lorebook into an RP chat.
  2. Delete the lorebook through the lorebook tab.
  3. Regenerate a response.
  4. Observe that the deleted lorebook remains in the active context.

Environment

  • Marinara Engine version: v2.4.2, build db0c598
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Staging version; browser/app shell not provided

Logs, screenshots, or video

Screenshot: https://cdn.discordapp.com/attachments/1537078514493169804/1537078514787024956/Screenshot_2026-08-12_193510.png?ex=6a7dbb6b&is=6a7c69eb&hm=8b8f4c66c08d5210c8969791e72f8c067c5f9a8b4aa5eaf73d3127673e3b08c6&

Additional context

Marinara indicated that the lorebook would remain until generating a new response, but the reporter regenerated a response and it still remained.

Discord thread: Deleted Lorebook stays in the context
Discord thread link: https://discord.com/channels/1417099416812392641/1537078514493169804
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-12T12:41:15.393Z] L3Harris Enjoyer: Release: v2.4.2Build: db0c598 (On Staging version)

I'm not sure if this is intentional, but the deleted lorebook stays in the active context. It would show up as 'Lorebook' with numbers at the end like in the image.

The way to reproduce this is to drag the lorebook into the RP chat, then delete it through the lorebook tab.

[attached image 1: https://cdn.discordapp.com/attachments/1537078514493169804/1537078514787024956/Screenshot_2026-08-12_193510.png?ex=6a7dbb6b&is=6a7c69eb&hm=8b8f4c66c08d5210c8969791e72f8c067c5f9a8b4aa5eaf73d3127673e3b08c6&]
[Discord message: https://discord.com/channels/1417099416812392641/1537078514493169804/1537078514493169804]

[2026-08-12T12:42:14.168Z] Marinara: It will stay until you generate a new response without it.
[Discord message: https://discord.com/channels/1417099416812392641/1537078514493169804/1537078761013383209]

[2026-08-12T12:42:41.371Z] L3Harris Enjoyer: I did regenerate a new response and it still stays
[Discord message: https://discord.com/channels/1417099416812392641/1537078514493169804/1537078875111170048]

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 (Aug 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4951 Originally assigned to: @SpicyMarinara on GitHub. ## Summary A lorebook deleted through the lorebook tab remains in the RP chat's active context. It appears as "Lorebook" with numbers appended and persists after regenerating a response. ## Expected behavior Deleting a lorebook should remove it from the active context, including after generating a new response. ## Actual behavior The deleted lorebook remains in the active context and is displayed as "Lorebook" with numbers appended, even after regenerating a response. ## Steps to reproduce 1. Drag a lorebook into an RP chat. 2. Delete the lorebook through the lorebook tab. 3. Regenerate a response. 4. Observe that the deleted lorebook remains in the active context. ## Environment - Marinara Engine version: v2.4.2, build db0c598 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Staging version; browser/app shell not provided ## Logs, screenshots, or video Screenshot: https://cdn.discordapp.com/attachments/1537078514493169804/1537078514787024956/Screenshot_2026-08-12_193510.png?ex=6a7dbb6b&is=6a7c69eb&hm=8b8f4c66c08d5210c8969791e72f8c067c5f9a8b4aa5eaf73d3127673e3b08c6& ## Additional context Marinara indicated that the lorebook would remain until generating a new response, but the reporter regenerated a response and it still remained. Discord thread: Deleted Lorebook stays in the context Discord thread link: https://discord.com/channels/1417099416812392641/1537078514493169804 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-12T12:41:15.393Z] L3Harris Enjoyer: Release: v2.4.2Build: db0c598 (On Staging version) I'm not sure if this is intentional, but the deleted lorebook stays in the active context. It would show up as 'Lorebook' with numbers at the end like in the image. The way to reproduce this is to drag the lorebook into the RP chat, then delete it through the lorebook tab. [attached image 1: https://cdn.discordapp.com/attachments/1537078514493169804/1537078514787024956/Screenshot_2026-08-12_193510.png?ex=6a7dbb6b&is=6a7c69eb&hm=8b8f4c66c08d5210c8969791e72f8c067c5f9a8b4aa5eaf73d3127673e3b08c6&] [Discord message: https://discord.com/channels/1417099416812392641/1537078514493169804/1537078514493169804] [2026-08-12T12:42:14.168Z] Marinara: It will stay until you generate a new response without it. [Discord message: https://discord.com/channels/1417099416812392641/1537078514493169804/1537078761013383209] [2026-08-12T12:42:41.371Z] L3Harris Enjoyer: I did regenerate a new response and it still stays [Discord message: https://discord.com/channels/1417099416812392641/1537078514493169804/1537078875111170048] ``` </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 05:54:22 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 12, 2026):

SpicyMarinara is taking this in the current assigned-issue sweep. I’m preparing a draft PR against staging and will link it here before implementation continues.

<!-- gh-comment-id:5267047426 --> @SpicyMarinara commented on GitHub (Aug 12, 2026): SpicyMarinara is taking this in the current assigned-issue sweep. I’m preparing a draft PR against `staging` and will link it here before implementation continues.
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#2749
No description provided.