[GH-ISSUE #494] [Issue]: Deleting a linked lorebook leaves chat settings count stale #224

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

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

Summary

Deleting an entire lorebook that is linked to an RP chat leaves the Lorebooks count in that chat's settings out of sync. The stale count persists after restarting Marinara Engine.

Expected behavior

When a linked lorebook is deleted, the chat settings Lorebooks count should update to match the remaining linked lorebooks.

Actual behavior

After deleting one linked lorebook, the deleted lorebook disappears from the chat settings list, but the Lorebooks count still includes it. In the provided screenshots, the list drops from 3 visible lorebooks to 2 visible lorebooks, but the count remains 3.

Steps to reproduce

  1. Open an RP chat with multiple linked lorebooks in chat settings.
  2. Delete one of those lorebooks entirely from Marinara Engine, not just the link from the chat.
  3. Return to the RP chat settings and check the Lorebooks section count.
  4. Restart Marinara Engine and check the same chat settings again.

Environment

  • Marinara Engine version: 1.5.8
  • Install type: Installer
  • OS + version: Windows 11 Home
  • Browser or app shell: Chrome Browser

Logs, screenshots, or video

Image Image
  • Before deletion: 3 linked lorebooks are visible and the count shows 3.
  • After deleting the entire "Mindjack Dump" lorebook: 2 linked lorebooks are visible, but the count still shows 3.

Discord source: https://discord.com/channels/1417099416812392641/1501702394478596097

Additional context

The reporter clarified this happens when deleting the entire lorebook, not when only removing the lorebook link from the chat.

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 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/494 ## Summary Deleting an entire lorebook that is linked to an RP chat leaves the Lorebooks count in that chat's settings out of sync. The stale count persists after restarting Marinara Engine. ## Expected behavior When a linked lorebook is deleted, the chat settings Lorebooks count should update to match the remaining linked lorebooks. ## Actual behavior After deleting one linked lorebook, the deleted lorebook disappears from the chat settings list, but the Lorebooks count still includes it. In the provided screenshots, the list drops from 3 visible lorebooks to 2 visible lorebooks, but the count remains 3. ## Steps to reproduce 1. Open an RP chat with multiple linked lorebooks in chat settings. 2. Delete one of those lorebooks entirely from Marinara Engine, not just the link from the chat. 3. Return to the RP chat settings and check the Lorebooks section count. 4. Restart Marinara Engine and check the same chat settings again. ## Environment - Marinara Engine version: 1.5.8 - Install type: Installer - OS + version: Windows 11 Home - Browser or app shell: Chrome Browser ## Logs, screenshots, or video <img width="336" height="240" alt="Image" src="https://github.com/user-attachments/assets/1528ac56-0454-48c7-9726-7e8ad20c31b5" /> <img width="340" height="204" alt="Image" src="https://github.com/user-attachments/assets/0abf6dae-1829-4f00-afaf-0b0de6f78b22" /> - Before deletion: 3 linked lorebooks are visible and the count shows 3. - After deleting the entire "Mindjack Dump" lorebook: 2 linked lorebooks are visible, but the count still shows 3. Discord source: https://discord.com/channels/1417099416812392641/1501702394478596097 ## Additional context The reporter clarified this happens when deleting the entire lorebook, not when only removing the lorebook link from the chat. ## 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:30 +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#224
No description provided.