mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1782] [Issue]: Sprites parity regressions in selected owners, expression validation, and persona export #865
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#865
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/1782
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Static parity audit found three sprites regressions on the refactor branch:
character:<id>/persona:<id>), but generation still filters by raw character/persona IDs. Selected sprites can be dropped before the Expression Engine gets<available_sprites>context.sprites/<id>path. Persona exports can omit saved persona sprites, and imports can restore them to the wrong namespace.Expected behavior
Actual behavior
loadAgentAvailableSpritescompares the selected set against rawcharacter.idand rawpersonaId.spriteExpressionsFromAgentResultscopies returnedcharacterId,characterName, andexpressionfields directly intospriteExpressionswithout checking them against available sprites.sprites/personas/<id>, but persona export reads onlysprites/<id>through the generic sprite export helper. Marinara import restore also writes embedded persona sprites tosprites/<id>.Steps to reproduce
character:<id>orpersona:<id>.sprites/<id>, while current persona sprites live undersprites/personas/<id>.Impact area
Environment
origin/refactorinspected fromreview/sprites-parity-auditLogs, screenshots, or video
No runtime logs or screenshots. Code evidence:
src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:841,src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:1118src/engine/generation/agent-runner.ts:998,src/engine/generation/agent-runner.ts:1001src/engine/generation/start-generation.ts:1429packages/server/src/routes/generate/expression-agent-utils.ts:190,packages/server/src/routes/generate.routes.ts:8723src-tauri/src/commands/storage/sprites.rs:1658sprites/<id>:src-tauri/src/commands/storage/exports.rs:360,src-tauri/src/commands/storage/exports.rs:686sprites/<id>:src-tauri/src/commands/storage/imports/marinara_assets.rs:44Regression notes
Legacy used raw IDs consistently for selected sprites in chat settings and generation, so the filter matched the stored metadata. Legacy also ran
validateSpriteExpressionEntriesbefore savingspriteExpressions, correcting close matches and dropping invalid entries. The persona sprite namespace changed in refactor, but export/import helpers did not fully follow that new owner-aware path.Additional context
Suggested repair order:
spriteExpressions.sprites/<id>persona data.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 1, 2026):
Aaa.
@SpicyMarinara commented on GitHub (Jun 1, 2026):
Fixed on refactor in
d7770ac9.What changed:
Verification: