mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2196] [MERGED] Preserve managed image references #5462
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#5462
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2196
Author: @Xelvanis
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/inline-image-followups📝 Commits (3)
7521f15Preserve managed image referencesf2b1916Address image reference review findings4b640f1Keep avatar gallery ids paired📊 Changes
17 files changed (+273 additions, -78 deletions)
View changed files
📝
src-tauri/src/commands/storage/commands/entities.rs(+4 -4)📝
src-tauri/src/commands/storage/imports/marinara_assets.rs(+2 -2)📝
src-tauri/src/commands/storage/imports/marinara_helpers.rs(+1 -1)📝
src-tauri/src/commands/storage/imports/payloads.rs(+1 -1)📝
src-tauri/src/commands/storage/imports/service.rs(+3 -3)📝
src-tauri/src/commands/storage/imports/service_tests.rs(+43 -0)📝
src-tauri/src/commands/storage/media_uploads.rs(+26 -3)📝
src-tauri/src/commands/storage/startup_migrations.rs(+2 -9)📝
src/engine/contracts/types/game.ts(+2 -0)📝
src/engine/contracts/types/scene.ts(+1 -1)📝
src/engine/generation/connected-commands.ts(+3 -2)📝
src/engine/generation/start-generation.ts(+3 -2)📝
src/features/modes/game/api/game-api.ts(+96 -5)📝
src/features/modes/game/components/GameSurface.tsx(+1 -1)📝
src/features/modes/game/stores/game-mode.store.ts(+43 -13)📝
src/features/modes/shared/chat-ui/components/ChatMessage.tsx(+36 -31)📝
src/features/modes/shared/chat-ui/components/ResolvedAvatarImage.tsx(+6 -0)📄 Description
Linked issue
N/A
Why this change
What changed
avatarGalleryIdthrough game NPC contracts, generation results, and the game mode store so generated NPC portraits remain linked to their gallery rows.Refactor impact
Primary owner:
Rust storage/imports, engine generation, game mode assets, and shared chat UI.
Impact areas reviewed:
Boundary notes:
storageApi,urlBinaryApi, and local file helpers); no raw Tauri invoke or raw remote-runtime fetch was added.Pressure points touched:
src/features/modes/game/api/game-api.tsand the game mode store for NPC portrait metadata.src-tauristorage/import modules for inline image detection and decoding.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm typecheckpassed.cargo test --manifest-path src-tauri/Cargo.toml import_st_character_materializes_mixed_case_inline_avatarpassed.cargo check --manifest-path src-tauri/Cargo.tomlpassed.pnpm checkpassed.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs changes were made because this preserves existing image/import behavior rather than adding a documented command, setting, workflow, or architecture rule.
UI evidence
No screenshots or recordings captured. The UI-adjacent change is avatar lightbox source resolution, not layout or visual styling.
Summary by CodeRabbit
Bug Fixes
New Features
Performance
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.