[GH-ISSUE #7378] [Issue]: Persona sprite stays visible after the persona leaves, with Only show active sprites on #4111

Closed
opened 2026-10-21 06:10:55 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7378

Originally assigned to: @SpicyMarinara on GitHub.

Summary

With Only show active sprites on, the persona's sprite stays on screen after the persona has left the scene. In the maintainer's Roleplay group chat, Mari left at message #1244. Every reply since then still listed her in expressionSpriteIds, including narrator replies with no expression result at all.

Expected behavior

The persona shows only on a turn the player wrote, or when the Expression Engine includes them.

Actual behavior

The Expression Engine's own result (spriteExpressions) correctly leaves Mari out. For example, a Tighnari reply records only {Tighnari: determined}. But the Engine adds the persona to the required expression targets whenever any user message is still in the recent context:

  • generate.routes.ts: getLatestUserExpressionSource() searches all of agentContext.recentMessages.
  • retry-agents-route.ts: recentMessages.some(role === "user").

completeRequiredSpriteExpressionEntries then fills in an expression from the player's old message, and expressionSpriteIds includes the persona on every reply.

Steps to reproduce

  1. In a Roleplay chat with the Expression Engine and Only show active sprites on, give the persona sprites.
  2. Write one message, then let characters reply several times without writing again, for example after the persona has left.
  3. The persona's sprite stays visible on every reply.

Environment

  • Marinara Engine: staging (Docker), 2026-10-10
  • Roleplay group chat, characters reply one by one

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7378 Originally assigned to: @SpicyMarinara on GitHub. ## Summary With **Only show active sprites** on, the persona's sprite stays on screen after the persona has left the scene. In the maintainer's Roleplay group chat, Mari left at message #1244. Every reply since then still listed her in `expressionSpriteIds`, including narrator replies with no expression result at all. ## Expected behavior The persona shows only on a turn the player wrote, or when the Expression Engine includes them. ## Actual behavior The Expression Engine's own result (`spriteExpressions`) correctly leaves Mari out. For example, a Tighnari reply records only `{Tighnari: determined}`. But the Engine adds the persona to the **required** expression targets whenever *any* user message is still in the recent context: - `generate.routes.ts`: `getLatestUserExpressionSource()` searches all of `agentContext.recentMessages`. - `retry-agents-route.ts`: `recentMessages.some(role === "user")`. `completeRequiredSpriteExpressionEntries` then fills in an expression from the player's old message, and `expressionSpriteIds` includes the persona on every reply. ## Steps to reproduce 1. In a Roleplay chat with the Expression Engine and **Only show active sprites** on, give the persona sprites. 2. Write one message, then let characters reply several times without writing again, for example after the persona has left. 3. The persona's sprite stays visible on every reply. ## Environment - Marinara Engine: staging (Docker), 2026-10-10 - Roleplay group chat, characters reply one by one ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:10:55 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4111
No description provided.