mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #353] [Issue]: Expression Engine retry produces invalid expressions; missing sprite validation in retry-agents path #150
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#150
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 @Lochalan on GitHub (May 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/353
Summary
Manually re-running the Expression Engine via the Agents & Actions re-run trackers button selects expressions that don't exist as sprite files. The sprite silently fails to update.
Expected behavior
When the Expression Engine is retried, it should only select expressions matching actual sprite image files in the character's sprites directory, and the sprite should visually update.
Actual behavior
The Expression Engine selects non-existent expressions (e.g. "intense_focus", "intrigued") because
retry-agents-route.tsnever loads_availableSpritesinto the agent context. The LLM receives no<available_sprites>list and hallucinates freely. Three issues:buildRetryAgentContext()never populates_availableSpritesfrom the filesystem (the normal path ingenerate.routes.tsdoes)applyRetryResultEffects()has nosprite_changehandler — no validation or persistenceagent_resultis sent before validation, so the client receives raw unvalidated outputSteps to reproduce
Environment
Logs, screenshots, or video
Additional context
The normal generation path in
generate.routes.tshandles all three correctly — loads sprites (~L3377), validates (~L5772), and persists (~L5828). The retry path was missing all of it.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 3, 2026):
Thank you for the PR, merging it!