[GH-ISSUE #5039] [Issue]: Add storage optimization for abandoned avatar files #2789

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Avatar files from previous Marinara Engine versions remain in the storage folder after the related lingering-avatar bug was fixed. Add a safe way to detect and remove abandoned files, such as an Optimize Storage button in Advanced Settings.

Expected behavior

Marinara Engine should detect avatar files that are no longer referenced and provide a safe way to remove them without requiring manual deletion.

Actual behavior

Old avatar files from previous versions continue to linger in the storage folder. The folder contains over 1,000 images, making manual cleanup difficult and risky.

Steps to reproduce

  1. Use Marinara Engine across multiple versions and generate or store avatar images.
  2. Delete avatars through the normal workflow.
  3. Inspect the avatar storage folder after upgrading or deleting avatars.
  4. Observe that files from previous versions or deleted avatars remain.

Environment

  • Marinara Engine version: 2.4.2
  • Install type: Not provided
  • OS + version: macOS 10.15.7
  • Browser or app shell: Safari 26.6 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15)

Logs, screenshots, or video

No logs, screenshots, or video provided. Related Discord bug report: https://discord.com/channels/1417099416812392641/1534850503668662414

Additional context

The related lingering-avatar deletion bug was confirmed fixed, but files left over from previous versions are not cleaned up. The user requested scheduled cleanup or an on-demand debug/storage optimization action. Marinara Engine suggested adding an Optimize Storage button in Advanced Settings. Build: 2.4.2+b50a007e665f; commit: b50a007e66; GPU: Apple GPU; active connection: Test; connection provider: image_generation; LLM model: gpt-image-2.

Discord thread: Follow up to bug report relating lingering avatar files
Discord thread link: https://discord.com/channels/1417099416812392641/1537935138913124432
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-14T21:25:10.570Z] Mylan: Not sure whether to label as bug report or feature request. I raised a bug [here](https://discord.com/channels/1417099416812392641/1534850503668662414) where avatars lingered after supposed deletion. 

While I confirmed this was indeed fixed, my old files from previous versions still linger here and aren't cleaned up by ME. Since my folder still contains 1000+ images, I would rather not remove those by hand (and I don't trust myself with accidentally deleting the wrong files either (skill issue)). 

Is it possible for ME to check for abandoned files and delete them for me? Maybe on a schedule, or a debug button that checks/optimizes storage on demand? Would save me a headache and would save storage as well for people who are affected and might not know.

Marinara Engine diagnostics
Version: 2.4.2
Build: 2.4.2+b50a007e665f
Commit: b50a007e665f
OS: macOS 10.15.7
Browser / app shell: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Safari/605.1.15
GPU: Apple GPU
Active connection: Test
Connection provider: image_generation
LLM model: gpt-image-2
[Discord message: https://discord.com/channels/1417099416812392641/1537935138913124432/1537935138913124432]

[2026-08-15T05:52:33.726Z] Marinara: The question is whether it's possible to easily detect the "abandoned" files.
[Discord message: https://discord.com/channels/1417099416812392641/1537935138913124432/1538062826764247041]

[2026-08-15T05:57:05.970Z] Marinara: Hm, seems like we can add an Optimize Storage button in Advanced Settings then.
[Discord message: https://discord.com/channels/1417099416812392641/1537935138913124432/1538063968638341200]

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 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5039 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Avatar files from previous Marinara Engine versions remain in the storage folder after the related lingering-avatar bug was fixed. Add a safe way to detect and remove abandoned files, such as an Optimize Storage button in Advanced Settings. ## Expected behavior Marinara Engine should detect avatar files that are no longer referenced and provide a safe way to remove them without requiring manual deletion. ## Actual behavior Old avatar files from previous versions continue to linger in the storage folder. The folder contains over 1,000 images, making manual cleanup difficult and risky. ## Steps to reproduce 1. Use Marinara Engine across multiple versions and generate or store avatar images. 2. Delete avatars through the normal workflow. 3. Inspect the avatar storage folder after upgrading or deleting avatars. 4. Observe that files from previous versions or deleted avatars remain. ## Environment - Marinara Engine version: 2.4.2 - Install type: Not provided - OS + version: macOS 10.15.7 - Browser or app shell: Safari 26.6 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15) ## Logs, screenshots, or video No logs, screenshots, or video provided. Related Discord bug report: https://discord.com/channels/1417099416812392641/1534850503668662414 ## Additional context The related lingering-avatar deletion bug was confirmed fixed, but files left over from previous versions are not cleaned up. The user requested scheduled cleanup or an on-demand debug/storage optimization action. Marinara Engine suggested adding an Optimize Storage button in Advanced Settings. Build: 2.4.2+b50a007e665f; commit: b50a007e665f; GPU: Apple GPU; active connection: Test; connection provider: image_generation; LLM model: gpt-image-2. Discord thread: Follow up to bug report relating lingering avatar files Discord thread link: https://discord.com/channels/1417099416812392641/1537935138913124432 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-14T21:25:10.570Z] Mylan: Not sure whether to label as bug report or feature request. I raised a bug [here](https://discord.com/channels/1417099416812392641/1534850503668662414) where avatars lingered after supposed deletion. While I confirmed this was indeed fixed, my old files from previous versions still linger here and aren't cleaned up by ME. Since my folder still contains 1000+ images, I would rather not remove those by hand (and I don't trust myself with accidentally deleting the wrong files either (skill issue)). Is it possible for ME to check for abandoned files and delete them for me? Maybe on a schedule, or a debug button that checks/optimizes storage on demand? Would save me a headache and would save storage as well for people who are affected and might not know. Marinara Engine diagnostics Version: 2.4.2 Build: 2.4.2+b50a007e665f Commit: b50a007e665f OS: macOS 10.15.7 Browser / app shell: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Safari/605.1.15 GPU: Apple GPU Active connection: Test Connection provider: image_generation LLM model: gpt-image-2 [Discord message: https://discord.com/channels/1417099416812392641/1537935138913124432/1537935138913124432] [2026-08-15T05:52:33.726Z] Marinara: The question is whether it's possible to easily detect the "abandoned" files. [Discord message: https://discord.com/channels/1417099416812392641/1537935138913124432/1538062826764247041] [2026-08-15T05:57:05.970Z] Marinara: Hm, seems like we can add an Optimize Storage button in Advanced Settings then. [Discord message: https://discord.com/channels/1417099416812392641/1537935138913124432/1538063968638341200] ``` </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:55:32 +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#2789
No description provided.