mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7916] [MERGED] fix(avatars): scope group avatars to configured owners and active speakers #8006
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#8006
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/7916
Author: @SpicyMarinara
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/group-2d-avatar-routing📝 Commits (3)
c5d17fachore: start group 2D avatar fix for #7915e64f7abfix(avatars): scope group cast and animation to configured speakersf9d659ffix(avatars): bound incomplete speaker tags to trailing lines📊 Changes
12 files changed (+853 additions, -188 deletions)
View changed files
📝
docs/agents/avatars.md(+21 -19)📝
e2e/avatar-placement.e2e.ts(+275 -2)📝
e2e/avatar-setup.e2e.ts(+45 -18)📝
e2e/avatar-voice-sync.e2e.ts(+29 -0)📝
packages/client/src/features/avatars/contract.ts(+0 -2)📝
packages/client/src/features/avatars/director/avatar-director.ts(+75 -21)📝
packages/client/src/features/avatars/director/reply-text.ts(+65 -19)📝
packages/client/src/features/avatars/setup/AvatarAgentSetup.tsx(+23 -16)📝
packages/client/src/features/avatars/stage/AvatarStage.tsx(+8 -16)📝
packages/client/src/features/avatars/stage/avatar-stage-logic.ts(+6 -22)📝
scripts/regressions/avatar-director.regression.ts(+287 -1)📝
scripts/regressions/avatar-stage-logic.regression.ts(+19 -52)📄 Description
Linked issue
Closes #7915
Why this change
Maintainer-requested behavior change: @SpicyMarinara explicitly requested opt-in avatars for configured characters only, correct speaker ownership, and no 2D or 3D cast limit. Existing assertions that unsaved sprites automatically appear, that the switch starts enabled without a setup, or that the cast is capped at two/four are intentionally replaced with assertions for that requested behavior. The group tests assert excluded members only after five configured peers have painted, and setup tests verify saving and reload.
Enabling avatar agents in a group chat should show only participants who have chosen an avatar, and each reply should animate its actual speaker. Previously, unsaved sprite fallbacks appeared automatically, phones showed at most two avatars and desktops four, and one member's speech clock or a name in narration could animate the wrong character.
What changed
docs/agents/avatars.md; translation follow-up: #7917.Validation
pnpm checkpasses locallyCONTRIBUTING.mdFull implementation evidence for
e64f7ab40fa339d61fb891ffdc5bd644ed82953c(follow-up parser correction below):pnpm check: passed, including localization, formatting, TypeScript/lint and production build. One pre-existing hook-dependency warning inHomeProfessorMariChat.tsx; no errors. The final test-only cleanup also passedpnpm check:e2e-types.node scripts/run-regressions.mjs --filter avatar-: 21/21 passed after the final production fixes. Before/after regressions reproduce wrong ownership, stale speech clocks, whole-reply overlap, unknown speakers, literal<3text and later unvoiced Game fallback.pnpm smoke:ui: 7 passed.pnpm smoke:production: 3 passed across desktop Chromium, mobile Chromium and mobile WebKit after the final production fixes./api/healthwithstatus: okand the frontend with HTTP 200 using disposable storage.git diff --check: clean.Final parser correction at
f9d659f89ca8443e7df25bd711907c071d4aeb99: reproduced and fixed the hosted finding where an incomplete tag crossed later prose/speaker lines. Also covered terminal LF/CRLF and blank lines so unfinished attribute text cannot change speaker ownership. The exact final file bytes passedpnpm check, all 21 avatar regression files and the focused desktop group renderer case. Four desktop 2D/3D group cases passed on the intermediate newline-boundary correction. The final local delta review completed with zero further findings; its preceding terminal-line-break finding was fixed and tested. Earlier Docker and broad mobile/voice evidence above applies to the implementation before this one-line parser refinement.These boxes remain for human verification. Mobile browser emulation, simple model fixtures and synthetic voice clips were used; physical devices and real external voice providers were not tested.
Manual verification notes
Docs and release impact
docs-i18nupdated, or a[docs-i18n]follow-up issue openedEnglish avatar guide updated. #7917 tracks the translated guide supplement. No app-version or storage-format change.
UI evidence
Before/after screenshot report on GitHub Gist: download
browser-evidence.htmland open it to view the embedded original PNGs. The report contains the old desktop/mobile limits and the new five-avatar PNGTuber and VRM casts in light/dark themes. The VRM fixture deliberately uses simple red geometry to prove model count. All screenshots use disposable fixture characters and public demo artwork.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.