mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1929] Restore startup recovery for gallery files without storage records #946
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#946
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1929
Originally assigned to: @cha1latte on GitHub.
Summary
Legacy recovered orphaned gallery files from disk on startup when the files existed but the database/storage row was missing. Refactor does not appear to have an equivalent recovery path for gallery media.
Expected behavior
If gallery media is stored as files, startup or repair tooling should be able to restore missing gallery storage records for valid files that still belong to existing chats/resources.
Actual behavior
Legacy called
recoverGalleryImages(db)during server startup and scanneddata/gallery. Refactor searches did not find an equivalent gallery recovery path. Current refactor gallery storage is also mostly inline data URLs, which masks the missing file recovery until gallery media becomes managed-file backed again.Evidence:
packages/server/src/app.ts:107.packages/server/src/services/storage/gallery-recovery.ts:19.src-tauri/src/commands/storage/shared.rs:2251, so there is no comparable file-backed recovery flow.Steps to reproduce
Impact area
Environment
8c36be60Logs, screenshots, or video
No runtime logs or screenshots. Static parity evidence only.
Regression notes
Legacy restored orphaned gallery images into DB rows during startup. Refactor did not show an equivalent recovery path during the media/assets parity scan.
Additional context
This came from parity target 4, media and assets, under #1904. This likely pairs with the managed-gallery issue: once gallery media is restored to file-backed storage, recovery/repair should be restored too.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 2, 2026):
fixed in #1953