mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5885] [Bug]: Asset Mapping Regression in Stable/Stagging — Frontend overrides Persona/Char avatar with random/broken images during Game Mode initialization #3247
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#3247
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 @scavru on GitHub (Sep 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5885
Originally assigned to: @SpicyMarinara on GitHub.
This is a summary of my attempts to figure out the problem using Google; Google itself compiled the report.
The Stagging version has the same problem
Description
A critical regression in the recent stable build completely breaks avatar routing and rendering in the UI during Game Mode/session initialization.
Thanks to deep investigation, the exact cause of this erratic behavior has been identified as a flawed path resolution and automated layout-fallback mechanism:
datafolder of all existing characters is the only thing that stops this automatic false linking.data/avatarsdirectory is entirely cleared or empty, the server's asset router fails to return a clean empty state. Instead, it falls back to parsing legacy import directories. It actively targets and extracts raw images directly from the SillyTavern import/migration cache path, forcing broken or completely random historical avatar overlays onto empty/new speaker containers.The correct uploaded image momentarily flashes upon page refresh (
Ctrl + F5), but is instantly overwritten by this broken asset retrieval loop. The bug bypasses Incognito sessions and standard IndexedDB/LocalStorage wipes because the faulty logic is hosted strictly within the backend's path-matching engine.Steps to Reproduce
data/avatarsfolder completely and initialize a session again.Expected Behavior
The asset manager must enforce strict unique ID matching for image-to-character binding, preventing loose string name collisions. If an avatar folder or container is empty, the UI must strictly render a default placeholder or a transparent frame, instead of indexing and leaking images from the SillyTavern import cache.
Environment
@SpicyMarinara commented on GitHub (Sep 6, 2026):
Check the latest staging; we addressed this issue already:
https://github.com/Pasta-Devs/Marinara-Engine/issues/5862
@scavru commented on GitHub (Sep 7, 2026):
No, everything's the same. I updated to Release: v2.4.5 Build: 9bbee87Branch: staging. I imported over 2,000 cards from the tavern, and in a clean game without any characters, it pulled up a character card with the same name as a character in the game, but the character’s name was white instead of blue. Then, after closing and refreshing the page, it disappeared; I clicked “Generate,” and it reappeared in place of the generated avatar.
@SpicyMarinara commented on GitHub (Sep 7, 2026):
Owner: @SpicyMarinara (Codex). Investigating the remaining same-name Game NPC collision in draft #5935, including the latest reproduction after #5862.
@SpicyMarinara commented on GitHub (Sep 7, 2026):
Landed on staging in #5935 after the full regression matrix and CodeRabbit review passed. Included focused regression coverage for the reported behavior; main is unchanged.