mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7682] [MERGED] fix(avatars): talking head blink/talk pictures keep the bust, six feeling faces, visible Try again #7879
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#7879
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/7682
Author: @SpicyMarinara
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/talking-head-variants📝 Commits (6)
9a6c4a0fix(avatars): send blink/talk edits as written with the bust on white7f9b6fbfix(avatars): six feeling faces, per-face blink/talk pictures, visible Try againae26f58fix(avatars): keep soft pixels, provided blinks and imports intactc26d8e3fix(avatars): toast when a single blink/talk picture or redo fails250b3dafix(avatars): a saved face keeps talk/blink sprites added since when saving6889317fix(avatars): Keep all waits while a blink/talk picture is being made📊 Changes
18 files changed (+757 additions, -272 deletions)
View changed files
📝
docs/agents/avatars.md(+5 -5)📝
e2e/avatar-generation.e2e.ts(+39 -7)📝
e2e/avatar-setup.e2e.ts(+21 -10)📝
packages/client/src/components/ui/SpriteGenerationModal.tsx(+46 -12)📝
packages/client/src/features/avatars/generation/AvatarGenerationPanel.tsx(+6 -3)📝
packages/client/src/features/avatars/generation/PngtuberVariantsSection.tsx(+262 -160)📝
packages/client/src/features/avatars/generation/use-avatar-generation.ts(+41 -22)📝
packages/client/src/features/avatars/renderers/pngtuber/pngtuber-layers.ts(+44 -0)📝
packages/client/src/localization/locales/en.json(+5 -3)📝
packages/server/src/services/avatars/generation/generation-context.ts(+21 -24)📝
packages/server/src/services/avatars/generation/pngtuber-variants.ts(+28 -18)📝
packages/server/src/services/image/image-generation.ts(+4 -1)📝
packages/shared/src/types/avatars.ts(+6 -0)📝
packages/shared/src/types/generation-integration.ts(+3 -0)📝
scripts/regressions/avatar-2d-renderers.regression.ts(+66 -0)📝
scripts/regressions/avatar-contract.regression.ts(+10 -0)📝
scripts/regressions/avatar-generation.regression.ts(+139 -6)📝
scripts/regressions/codex-chatgpt-image.regression.ts(+11 -1)📄 Description
Linked issue
Closes #7681
Why this change
Testing the 2D Avatars talking head on staging with the newest GPT Image model turned up these problems:
Root cause of the broken pictures: the Engine ran the 2D Avatars edit template through the sprite prompt compiler. That cut the template down to tags. The mouth-open prompt became roughly
eyes, hair, red eyes, brown hair, which shows the "angry" expression, tall: "open the mouth" and "do not crop / redraw" were gone, and most style profiles added "full body". The model also saw the cut-out sprite on black, because see-through pixels read as black, so dark clothes and hair merged into the background. GPT Image therefore redrew the character. Cutting that redraw into the bust's outline is what left the solid dark patches. A savedangry-mouth-open.pngwas checked: its "dark pixels" are opaque black, not holes.Try again did run. The card kept showing the old picture with no spinner. Progress showed only at the top of the section, counted among every card, so a single redo read "7 of 12".
What changed
relaxed) is that feeling's face, even when alovesprite also exists.expressionChoicesprop). The character and persona editors are unchanged._blink/_talksprites, or new drafts. You can make the missing ones or redo any of them._blink/_talksprite when you save a new picture for it.docs/agents/avatars.mddescribes the new section. The translated copies are tracked in #7638 (comment added).The package side is Pasta-Devs/Marinara-Agents#1406 (2D Avatars 0.1.2). It removes the "Appearance notes: ${appearance}" line from the two variant templates, so the model gets only the bust and the one change. An install that saved its own copy of those prompts keeps that copy until it is reset.
Review: local CodeRabbit raised 1 finding, the docs-i18n link, now resolved. A 4-lens adversarial review raised 7 findings. Its verifiers confirmed 5, all fixed in
ae26f58f5. They rejected 2: the docs-i18n issue was already tracked in #7638, and thereferenceIsCanvaswiring was not a defect (a source check was added anyway).Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
_blink/_talkpictures, at phone width too.pnpm check).Agent-run validation, for reference:
tsccheck-locales,localization:check,impeccable:checkavatar-generation+avatar-setupon desktop-chromium and mobile-chromium (12/12)Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
The e2e run writes
pngtuber-picture.png,pngtuber-redo.pngandavatar-faces-generator.pngto its test output folder. No screenshots are attached here.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.