mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2130] [Issue]: Native character export omits managed gallery images #1041
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#1041
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 @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2130
Originally assigned to: @cha1latte on GitHub.
Summary
Native
.marinaracharacter export on the refactor branch omits character gallery images that were uploaded through the normal managed-gallery flow. The export path only serializes gallery rows whoseurlis already an inlinedata:image/...value, but normal refactor gallery uploads persist managed files and store an asset URL.Expected behavior
Native character export/import should preserve character gallery images across a
.marinararound trip, matching legacymainbehavior.Actual behavior
Refactor
gallery_for_characterlistscharacter-galleryrows, then skips every row whoseurldoes not start withdata:image/. Normal refactor gallery uploads store managed gallery assets and set the gallery row URL to the managed asset URL, so those images are not included in the native character export payload.Steps to reproduce
refactor, create or open a character..marinara.Impact area
Environment
refactorstatic trace on 2026-06-04; legacy referencemainLogs, screenshots, or video
No runtime log or screenshot captured. Static evidence:
src-tauri/src/commands/storage/shared.rsatupload_gallery_image.src-tauri/src/commands/storage/exports.rsatgallery_for_character.mainread gallery image files from disk and embedded them in the native character envelope inpackages/server/src/routes/characters.routes.tsatreadGalleryForCharacter/buildNativeCharacterEnvelope.Regression notes
Legacy
mainexported gallery metadata rows plus gallery image binaries from disk into the native character envelope. Refactor changed gallery uploads to managed assets, but the native export path still only handles inline gallerydata:image/...rows.Additional context
Found during the 2026-06-04 target 5 Characters parityscan for #2124 / #1904, in rows
05-CHAR-ASSET-gallery-imagesand05-CHAR-COMPAT-native-marinara-import-export.Adjacent import risk: native character gallery restore should be checked with the fix. The current restore path creates gallery rows from embedded inline data; proof should confirm those rows are materialized into managed gallery assets instead of leaving inline-only records.
Suggested proof after fixing: create a character with two managed gallery uploads, export native
.marinara, import into a clean profile, confirm gallery row count, managed asset files, thumbnails/display URLs, and delete cleanup all survive the round trip.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: