mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2048] [MERGED] Store uploaded avatars as managed assets #5413
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#5413
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/2048
Author: @Xelvanis
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/avatar-upload-managed-assets📝 Commits (1)
6a6576fstorage: store uploaded avatars as managed assets📊 Changes
15 files changed (+562 additions, -56 deletions)
View changed files
📝
src-tauri/src/commands/storage/avatars.rs(+452 -10)📝
src-tauri/src/commands/storage/commands/entities.rs(+2 -1)📝
src-tauri/src/commands/storage/media_uploads.rs(+2 -18)📝
src/engine/contracts/types/chat.ts(+2 -0)📝
src/engine/generation/persona-snapshot.ts(+2 -0)📝
src/features/catalog/personas/hooks/use-personas.ts(+33 -10)📝
src/features/catalog/personas/query-keys.ts(+1 -1)📝
src/features/modes/conversation/components/ConversationInput.tsx(+8 -3)📝
src/features/modes/conversation/components/ConversationMessage.tsx(+24 -3)📝
src/features/modes/shared/chat-ui/components/ChatMessage.tsx(+20 -4)📝
src/features/modes/shared/chat-ui/hooks/use-chat-surface-data.test.tsx(+3 -0)📝
src/features/modes/shared/chat-ui/hooks/use-chat-surface-data.ts(+9 -5)📝
src/features/modes/shared/chat-ui/index.ts(+1 -0)📝
src/features/runtime/generation/hooks/use-generate.ts(+1 -1)📝
src/features/runtime/visuals/types.ts(+2 -0)📄 Description
Linked issue
N/A
Why this change
data:image/...payloads in liveavatarandavatarPathfields. That made character, persona, NPC, chat, and game hot paths carry large base64 strings.What changed
avatar/avatarPathwhile preservingavatarFilePathandavatarFilenamemetadata.Refactor impact
Primary owner:
Rust storage, catalog persona hooks, and shared chat/conversation hot-path reads.
Impact areas reviewed:
Boundary notes:
storageApi; no new raw Tauri or remote-runtime calls were added.Pressure points touched:
ModeSurface,GameSurface,src-tauri/src/lib.rs, or import module changes.Validation
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 avatar_uploadpassed.cargo test --manifest-path src-tauri/Cargo.toml character_avatar_update_snapshot_does_not_restore_deleted_file_metadatapassed.pnpm typecheckpassed.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 or release-note update was made because this is an internal storage payload-shape bugfix and the repo has no changelog/release-notes file to update.
UI evidence
N/A. No visual layout change; verification is storage contract and type/check proof.
Remaining risk
Summary by CodeRabbit
Release Notes
Bug Fixes
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.