mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5220] [MERGED] Fix Game portrait recovery replacing library avatars #6676
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#6676
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/5220
Author: @SpicyMarinara
Created: 8/18/2026
Status: ✅ Merged
Merged: 8/18/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/4746-preserve-existing-game-portraits📝 Commits (1)
00124b4Preserve library portraits during game asset recovery📊 Changes
3 files changed (+85 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/game/game-asset-generation-payload.ts(+15 -2)➕
scripts/regressions/game-portrait-recovery.regression.ts(+69 -0)📄 Description
Linked issue
Closes #4746
Why this change
Game Mode's automatic asset recovery treated every existing portrait as a game-owned generated NPC file. When a saved scene background was missing or an avatar emitted a load error, the client sent the character name in
forceNpcAvatarNames. The server then intentionally bypassed both its existing-avatar check and its Character-library lookup, generating and persisting a replacement for a matching Character portrait.What changed
/api/avatars/npc/<chatId>/....CHANGELOG.md[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence
node scripts/run-regressions.mjs --filter scripts/regressions/game-portrait-recovery.regression.tspnpm localization:checkpnpm checkManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedNo user-facing documentation or release metadata changed.
CHANGELOG.mdis updated under[Unreleased].UI evidence (if applicable)
No visual UI changes.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.