mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4790] [MERGED] fix: complete Persona avatar lifecycle safety #6500
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#6500
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/4790
Author: @Xelvanis
Created: 8/9/2026
Status: ✅ Merged
Merged: 8/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/persona-avatar-lifecycle📝 Commits (2)
04b32f4fix: complete persona avatar lifecycle safety3bce6d1Merge branch 'staging' into fix/persona-avatar-lifecycle📊 Changes
4 files changed (+127 additions, -72 deletions)
View changed files
📝
packages/server/src/routes/characters.routes.ts(+41 -38)📝
packages/server/src/services/image/avatar-file-lifecycle.ts(+24 -9)📝
packages/server/src/services/import/marinara.importer.ts(+16 -13)📝
packages/server/src/services/mari-db/mari-images.service.ts(+46 -12)📄 Description
Linked issue
Closes #4789
Why this change
What changed
avatarCropwhenever a Persona avatar is replaced or cleared.filesDeletedfor clear operations.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm build:sharedpassed.git diff --check origin/staging...HEADpassed.pnpm checkpassed locally. The earlier Fastify augmentation errors came from broken absolute symlinks retained from the worktree’s previous path; no source change was required.filesDeletedwas0, current avatar/crop became null, two version-history rows retained the old path, and that history-owned file still existed.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)This is a focused server-side lifecycle correction with no documentation, translation, or version-metadata changes.
UI evidence (if applicable)
No UI layout or copy changed. Disposable desktop/mobile evidence was captured locally in the Traycer browser-verification artifact.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.