[GH-ISSUE #7976] [Issue]: Preset folder counts remain incorrect after deleting presets #4379

Closed
opened 2026-10-22 04:06:09 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Deleting a preset does not properly remove its reference from library folders, causing folder counts to include presets that no longer exist.

This is the preset equivalent of the lorebook folder issue previously reported in #7431 and fixed by #7435.

Expected behavior

  • Deleting a preset should remove its references from library folders.
  • Folder counts should reflect the number of existing presets.
  • Previously orphaned references should not persist indefinitely.

Actual behavior

  • Deleted preset IDs can remain in the item_ids arrays of library folders.
  • Folder badges can continue counting deleted presets.
  • Stale references are not automatically removed by the preset deletion process.

Steps to reproduce

  1. Create a library folder in the Presets panel.
  2. Create several presets and add them to the folder.
  3. Delete one of the presets.
  4. Observe that the folder count may still include the deleted preset.
  5. Refresh the page or restart the server.
  6. Observe that the stale folder reference can persist.

Environment

  • Marinara Engine version: 2.5.1
  • Install type: source
  • OS + version: macOS 26.6.2 (Apple Silicon)
  • Browser or app shell: Local web interface

Logs, screenshots, or video

No error message is displayed. The issue concerns incorrect folder counts and stale preset references.

Additional context

This is the same class of library-folder reference consistency issue previously fixed for lorebooks:

The previous fix addressed lorebook folder references, but equivalent cleanup is also needed for preset folders.

The issue was initially observed in v2.5.0 and remains present in v2.5.1.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @minikkeuen on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7976 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Deleting a preset does not properly remove its reference from library folders, causing folder counts to include presets that no longer exist. This is the preset equivalent of the lorebook folder issue previously reported in #7431 and fixed by #7435. ## Expected behavior - Deleting a preset should remove its references from library folders. - Folder counts should reflect the number of existing presets. - Previously orphaned references should not persist indefinitely. ## Actual behavior - Deleted preset IDs can remain in the `item_ids` arrays of library folders. - Folder badges can continue counting deleted presets. - Stale references are not automatically removed by the preset deletion process. ## Steps to reproduce 1. Create a library folder in the Presets panel. 2. Create several presets and add them to the folder. 3. Delete one of the presets. 4. Observe that the folder count may still include the deleted preset. 5. Refresh the page or restart the server. 6. Observe that the stale folder reference can persist. ## Environment - Marinara Engine version: 2.5.1 - Install type: source - OS + version: macOS 26.6.2 (Apple Silicon) - Browser or app shell: Local web interface ## Logs, screenshots, or video No error message is displayed. The issue concerns incorrect folder counts and stale preset references. ## Additional context This is the same class of library-folder reference consistency issue previously fixed for lorebooks: - Related issue: #7431 - Previous fix: #7435 The previous fix addressed lorebook folder references, but equivalent cleanup is also needed for preset folders. The issue was initially observed in v2.5.0 and remains present in v2.5.1. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-24 04:03:38 +07:00
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#4379
No description provided.