mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7813] [MERGED] fix(avatars): use newly generated main faces and let every face be picked #7942
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#7942
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/7813
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/avatar-2d-main-faces📝 Commits (3)
259a160fix(avatars): use newly generated main faces and let every face be picked14e4fbffix(avatars): offer no face past the 64-face cap9ab2a6bfix(avatars): offer every sprite face while the setup has room📊 Changes
8 files changed (+461 additions, -16 deletions)
View changed files
📝
docs/agents/avatars.md(+2 -2)📝
e2e/avatar-2d.e2e.ts(+85 -0)📝
e2e/avatar-setup.e2e.ts(+24 -0)📝
packages/client/src/components/ui/SpriteGenerationModal.tsx(+6 -3)📝
packages/client/src/features/avatars/generation/AvatarGenerationPanel.tsx(+24 -3)📝
packages/client/src/features/avatars/renderers/pngtuber/PngtuberSetupPanel.tsx(+14 -5)📝
packages/client/src/features/avatars/renderers/pngtuber/pngtuber-layers.ts(+70 -3)➕
scripts/regressions/avatar-2d-main-faces.regression.ts(+236 -0)📄 Description
Linked issue
@SpicyMarinara reported this directly from her Docker staging instance, so there is no separate issue. It follows up on the face maker work in #7682, #7690, #7692 and #7696.
Why this change
Mari ran Make faces from the avatar → All faces for a character (Maukie) that already had a saved talking head built from older sprites (
smirk,laughing,disgusted,crying,sleepy,scared, …). Her report:The read-only snapshot of her instance showed all 29 new faces saved as sprites. Her old sprites were untouched. The saved PNGTuber setup still had faces for only the ten old sprites, and the six feelings were still bound to them (
neutral → smirk, picked by her, andhappy → laughingand the others, detected automatically).Root cause, two parts:
SpriteGenerationModalcalledonSpritesGenerated()with nothing (SpriteGenerationModal.tsx:1965on staging).AvatarGenerationPanelonly refetched the sprite list (AvatarGenerationPanel.tsx:245). A saved setup is what chats and the preview show (withSpriteAvatar,avatar-stage-logic.ts:90), so the old faces stayed. That is also true for the 23 extra feelings: with no faces of their own in the saved setup, a fearful line still showedscared.faceKeys = Object.keys(shown.layers)(PngtuberSetupPanel.tsx:166). A sprite added after Use my sprites therefore could not be chosen for any feeling. The only way in was Update from sprites, which a setup that already has saved blink or talk pictures doesn't offer. Blink and talk pictures follows the faces the talking head shows (talkingHeadFaces). It prefers an automatic binding that still names a saved face over a newer sprite named after the feeling (pngtuber-layers.ts:206-207), so it kept listinglaughingfor Happy and never offeredhappy.No filter removes sprites named after a feeling. Talk, blink and full-body sprites are still kept out, as before.
What changed
happy_2, as the docs suggest) is still the face it was drawn as. A face saved under a feeling's name wins over a renamed one._talkand_blinksprites. Talk, blink and full-body sprites are still not offered as faces, and a PNGTuber Plus import still offers only its own faces. Once a sprite is a feeling's face, Blink and talk pictures lists it.docs/agents/avatars.mdhas two added sentences, in Face for each feeling and Faces from the avatar. The translations are tracked in #7814.scripts/regressions/avatar-2d-main-faces.regression.ts, built from Mari's saved setup and sprite list with the owner renamed. It covers the wiring, the face lists, renames, imports and the cap, and checks that a later blink/talk save keeps the new faces.e2e/avatar-2d.e2e.ts.e2e/avatar-setup.e2e.ts): Use my sprites, pick Happy →angry, make the main faces again, and all six bindings must point to the new faces.Repair for Maukie (existing data, no migration): open Agents → 2D Avatars, pick Maukie, and in PNGTuber sprites select Update from sprites. It adds every new face, binds Happy, Angry, Sad, Relaxed, Surprised and the 23 extra feelings to the new faces by name, and keeps her own Neutral pick. Then set Neutral to
neutralunder Face for each feeling. Alternatively, with this PR choose each face in its select, or make the six faces again.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent before opening this PR. These are notes for the reviewer, not ticked boxes:
pnpm checkexited 0.pnpm localization:checkreported no new keys (none added).node scripts/run-regressions.mjs --filter avatar: 18/18 passed, including the newavatar-2d-main-faces.--filter spriteand--filter matched-full-bodypassed.e2e/avatar-2d.e2e.ts: 14/14.e2e/avatar-setup.e2e.ts,e2e/avatar-generation.e2e.tsande2e/avatar-preview.e2e.ts: 8/8.Still to do by hand:
fearface, notscared)neutral, gives the new faces for all feelings, and the old sprites still show in the Faces listhappy→happy_2) keeps the oldhappysprite and makeshappy_2the Happy faceDocs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/avatars.mdis updated in this PR. The[docs-i18n]follow-up issue is #7814.UI evidence (if applicable)
No screenshots. The e2e tests above check the face lists and the saved setups directly.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.