[GH-ISSUE #4275] [Issue]: Deleting a chat gallery image does not remove copies from other galleries #2313

Closed
opened 2026-10-21 05:47:13 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Generated images involving a user or character are intentionally saved to multiple galleries, but deleting an image from the chat gallery does not remove the corresponding copies or files from the other galleries.

Expected behavior

Deleting an image from the chat gallery should also remove the corresponding image from related user and character galleries and delete unneeded files from server storage.

Actual behavior

After an image is deleted through the UI, copies appear to remain in other galleries and under packages/server/data/gallery/, causing unused image files to accumulate.

Steps to reproduce

  1. Generate an image using the automatic illustrator or a gallery action involving a user or character.
  2. Confirm that the image is saved in multiple galleries, such as chat, persona/user, and character galleries.
  3. Delete the image from the chat gallery through the UI.
  4. Inspect the related galleries and packages/server/data/gallery/ and observe that corresponding copies or files remain.

Environment

  • Marinara Engine version: 2.3.5 staging, build f294482
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Three screenshots were attached as evidence of the same image appearing under different titles: https://cdn.discordapp.com/attachments/1532122990278479992/1532122990760693810/0C1atkXrlkG1Lk_acDzpY.png?ex=6a6bb43a&is=6a6a62ba&hm=b8c19b668bd3576909b81aa8730b3a8901e4f4dc7df8e52ca90a7b32bb900baa&, https://cdn.discordapp.com/attachments/1532122990278479992/1532122991230451822/bmgiQ_HmcKAKPoSqcyaob.png?ex=6a6bb43a&is=6a6a62ba&hm=0a6e858dc6778a136af124eec82617665ebb5bb408639cd4ec8f095dd3d1d8e1&, and https://cdn.discordapp.com/attachments/1532122990278479992/1532122991595487343/nJBFKB5stg7Zgbp5Lug4E.png?ex=6a6bb43a&is=6a6a62ba&hm=513bef1edc9a121408e63bb3c7efeb7df762a50b5afe32b3781f4cd9cc1d2f6c&. No logs were provided.

Additional context

The maintainer confirmed that saving an image to each involved character or user gallery is intended. The maintainer also agreed that deleting an image from the chat gallery should remove it from the other galleries. The reporter is concerned that retained files will cause server storage usage to grow over time.

Discord thread: [Bug?] Generated Images are saved multiple times + deletion doesn't actually delete from server
Discord thread link: https://discord.com/channels/1417099416812392641/1532122990278479992
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-07-29T20:29:46.351Z] ylliselmanii: - 2.3.5
- staging
- build: f294482

Well, as described in the title, I've realised that each generated image (automatic illustrator, or gallery action) gets often saved multiple times, in multiple different folders: e.g. chat, persona, characters.

I'll attach.. the same image three times, all with different titles as like.. evidence?

Also, deleting an image from inside the UI, doesn't delete it from the folders as far as I can tell (packages/server/data/gallery/)

Not sure if that is the intended behaviour, but it will kinda balloon the file size sooner or later, especially with the second, no deletion part. Maybe they could be saved only once and the character galleries would just.. point at that file?

[attached image 1: https://cdn.discordapp.com/attachments/1532122990278479992/1532122990760693810/0C1atkXrlkG1Lk_acDzpY.png?ex=6a6bb43a&is=6a6a62ba&hm=b8c19b668bd3576909b81aa8730b3a8901e4f4dc7df8e52ca90a7b32bb900baa&]
[attached image 2: https://cdn.discordapp.com/attachments/1532122990278479992/1532122991230451822/bmgiQ_HmcKAKPoSqcyaob.png?ex=6a6bb43a&is=6a6a62ba&hm=0a6e858dc6778a136af124eec82617665ebb5bb408639cd4ec8f095dd3d1d8e1&]
[attached image 3: https://cdn.discordapp.com/attachments/1532122990278479992/1532122991595487343/nJBFKB5stg7Zgbp5Lug4E.png?ex=6a6bb43a&is=6a6a62ba&hm=513bef1edc9a121408e63bb3c7efeb7df762a50b5afe32b3781f4cd9cc1d2f6c&]
[Discord message: https://discord.com/channels/1417099416812392641/1532122990278479992/1532122990278479992]

[2026-07-29T20:33:59.040Z] Marinara: > Well, as described in the title, I've realised that each generated image (automatic illustrator, or gallery action) gets often saved multiple times, in multiple different folders: e.g. chat, persona, characters.

Yes, this is intended; these get saved to the character/user Gallery if they involved said user/character.
[Discord message: https://discord.com/channels/1417099416812392641/1532122990278479992/1532124050132828300]

[2026-07-29T20:34:44.873Z] Marinara: > Also, deleting an image from inside the UI, doesn't delete it from the folders as far as I can tell (packages/server/data/gallery/)

I agree that an image deleted from the chat gallery should also be removed from the other galleries.
[Discord message: https://discord.com/channels/1417099416812392641/1532122990278479992/1532124242370494525]

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 (Jul 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4275 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Generated images involving a user or character are intentionally saved to multiple galleries, but deleting an image from the chat gallery does not remove the corresponding copies or files from the other galleries. ## Expected behavior Deleting an image from the chat gallery should also remove the corresponding image from related user and character galleries and delete unneeded files from server storage. ## Actual behavior After an image is deleted through the UI, copies appear to remain in other galleries and under packages/server/data/gallery/, causing unused image files to accumulate. ## Steps to reproduce 1. Generate an image using the automatic illustrator or a gallery action involving a user or character. 2. Confirm that the image is saved in multiple galleries, such as chat, persona/user, and character galleries. 3. Delete the image from the chat gallery through the UI. 4. Inspect the related galleries and packages/server/data/gallery/ and observe that corresponding copies or files remain. ## Environment - Marinara Engine version: 2.3.5 staging, build f294482 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Three screenshots were attached as evidence of the same image appearing under different titles: https://cdn.discordapp.com/attachments/1532122990278479992/1532122990760693810/0C1atkXrlkG1Lk_acDzpY.png?ex=6a6bb43a&is=6a6a62ba&hm=b8c19b668bd3576909b81aa8730b3a8901e4f4dc7df8e52ca90a7b32bb900baa&, https://cdn.discordapp.com/attachments/1532122990278479992/1532122991230451822/bmgiQ_HmcKAKPoSqcyaob.png?ex=6a6bb43a&is=6a6a62ba&hm=0a6e858dc6778a136af124eec82617665ebb5bb408639cd4ec8f095dd3d1d8e1&, and https://cdn.discordapp.com/attachments/1532122990278479992/1532122991595487343/nJBFKB5stg7Zgbp5Lug4E.png?ex=6a6bb43a&is=6a6a62ba&hm=513bef1edc9a121408e63bb3c7efeb7df762a50b5afe32b3781f4cd9cc1d2f6c&. No logs were provided. ## Additional context The maintainer confirmed that saving an image to each involved character or user gallery is intended. The maintainer also agreed that deleting an image from the chat gallery should remove it from the other galleries. The reporter is concerned that retained files will cause server storage usage to grow over time. Discord thread: [Bug?] Generated Images are saved multiple times + deletion doesn't actually delete from server Discord thread link: https://discord.com/channels/1417099416812392641/1532122990278479992 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-07-29T20:29:46.351Z] ylliselmanii: - 2.3.5 - staging - build: f294482 Well, as described in the title, I've realised that each generated image (automatic illustrator, or gallery action) gets often saved multiple times, in multiple different folders: e.g. chat, persona, characters. I'll attach.. the same image three times, all with different titles as like.. evidence? Also, deleting an image from inside the UI, doesn't delete it from the folders as far as I can tell (packages/server/data/gallery/) Not sure if that is the intended behaviour, but it will kinda balloon the file size sooner or later, especially with the second, no deletion part. Maybe they could be saved only once and the character galleries would just.. point at that file? [attached image 1: https://cdn.discordapp.com/attachments/1532122990278479992/1532122990760693810/0C1atkXrlkG1Lk_acDzpY.png?ex=6a6bb43a&is=6a6a62ba&hm=b8c19b668bd3576909b81aa8730b3a8901e4f4dc7df8e52ca90a7b32bb900baa&] [attached image 2: https://cdn.discordapp.com/attachments/1532122990278479992/1532122991230451822/bmgiQ_HmcKAKPoSqcyaob.png?ex=6a6bb43a&is=6a6a62ba&hm=0a6e858dc6778a136af124eec82617665ebb5bb408639cd4ec8f095dd3d1d8e1&] [attached image 3: https://cdn.discordapp.com/attachments/1532122990278479992/1532122991595487343/nJBFKB5stg7Zgbp5Lug4E.png?ex=6a6bb43a&is=6a6a62ba&hm=513bef1edc9a121408e63bb3c7efeb7df762a50b5afe32b3781f4cd9cc1d2f6c&] [Discord message: https://discord.com/channels/1417099416812392641/1532122990278479992/1532122990278479992] [2026-07-29T20:33:59.040Z] Marinara: > Well, as described in the title, I've realised that each generated image (automatic illustrator, or gallery action) gets often saved multiple times, in multiple different folders: e.g. chat, persona, characters. Yes, this is intended; these get saved to the character/user Gallery if they involved said user/character. [Discord message: https://discord.com/channels/1417099416812392641/1532122990278479992/1532124050132828300] [2026-07-29T20:34:44.873Z] Marinara: > Also, deleting an image from inside the UI, doesn't delete it from the folders as far as I can tell (packages/server/data/gallery/) I agree that an image deleted from the chat gallery should also be removed from the other galleries. [Discord message: https://discord.com/channels/1417099416812392641/1532122990278479992/1532124242370494525] ``` </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:47:13 +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#2313
No description provided.