mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1802] [Issue]: Runtime visuals drop sprite expression fallback and owner-key avatar state #884
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#884
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?
Originally created by @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1802
Originally assigned to: @cha1latte on GitHub.
Summary
Static parity audit of
src/features/runtime/visualsfound runtime sprite expression state can desync on the refactor branch:spriteExpressionsand only writes message extra, unlike legacy.character:<id>./emotepersistence, and expression avatar state.Expected behavior
spriteExpressionsshould still be honored for older chats and for manual expression changes before an assistant message exists./emoteand Expression Engine updates should visibly update both overlay sprites and expression avatars.Actual behavior
use-sprite-metadata-statereads the latest assistant message extra and returns{}when no message-levelspriteExpressionsare present, with no chat metadata fallback.persistSpriteExpressionsonly patches the last assistant message extra. If no assistant message exists, a manual/emotecall can report success while persisting no expression state.RoleplayModeRouteexpression avatar lookup checksexpressions[characterId]and character name, but notexpressions[character:<id>].SpriteOverlaymaps agent results to owner keys and passes those owner keys back toonExpressionChange.Steps to reproduce
spriteExpressions, but whose latest assistant message has noextra.spriteExpressions./emotebefore the first assistant reply in a chat.Impact area
Environment
84f40efdLogs, screenshots, or video
No runtime logs or screenshots. Code evidence:
src/features/modes/shared/chat-ui/hooks/use-sprite-metadata-state.ts:45src/features/modes/shared/chat-ui/hooks/use-sprite-metadata-state.ts:79src/features/runtime/visuals/components/SpriteOverlay.tsx:141,src/features/runtime/visuals/components/SpriteOverlay.tsx:160src/features/modes/roleplay/components/RoleplayModeRoute.tsx:253packages/client/src/components/chat/ChatArea.tsx:483packages/client/src/components/chat/ChatArea.tsx:631Regression notes
Legacy kept chat-level
spriteExpressionsas a backward-compatible fallback while also persisting per-message sprite expression state. Refactor moved toward message-scoped expression state, but did not keep the fallback/write path for older chats and manual expression changes. Refactor also introduced typed sprite owner keys for selected sprite owners, but expression avatar lookup has not fully followed that owner-key shape.Additional context
Suggested repair order:
spriteExpressions, and keep a write fallback for manual commands when no assistant message exists.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 1, 2026):
Fixed in #1836