mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1982] [MERGED] Fix native character avatar import storage #5372
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#5372
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/1982
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1960-native-avatar-import📝 Commits (4)
59d0304Fix native character avatar import storaged2bf8d1Fix native avatar import clippy warnings3a9eef4Preserve plain native character avatars6d0d35dUse literal native avatar test data📊 Changes
2 files changed (+192 additions, -11 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/marinara.rs(+51 -11)📝
src-tauri/src/commands/storage/imports/marinara_tests.rs(+141 -0)📄 Description
Linked issue
Closes #1960
Why this change
.marinaracharacter imports with embedded avatars were storing thedata:image/...payload directly in character avatar fields. That diverged from legacy native import behavior and from the current ST/CharX managed avatar import path.What changed
avatarPath,avatarFilePath, andavatarFilenamefrom managed avatar storage instead of persisting inline avatar bytes.Refactor impact
Primary owner:
Rust storage imports.
Impact areas reviewed:
Boundary notes:
src-tauristorage import code.Pressure points touched:
src-tauri/src/commands/storage/imports/marinara.rssrc-tauri/src/commands/storage/imports/marinara_tests.rsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml native_marinara_ -- --nocapture: passed. The tests cover ST-shaped native character avatar materialization, storage-record-shaped native character avatar materialization, and rollback when a later sprite import step fails.cargo check --manifest-path src-tauri/Cargo.toml --workspace: passed.rustfmt --check src-tauri/src/commands/storage/imports/marinara.rs src-tauri/src/commands/storage/imports/marinara_tests.rs: passed.git diff --check: passed.cargo fmt --manifest-path src-tauri/Cargo.toml --checkcurrently reports unrelated pre-existing rustfmt drift outside this PR's files.pnpm check: passed.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.mdUI evidence
N/A. This is a Rust storage import bugfix with command-level regression coverage; no visible UI surface changed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.