mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8626] [Issue]: Speaker-tagged roleplay swipes leave stale narration in the selected message #8433
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#8433
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 @DSBwizzard on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8626
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Switching swipes in Roleplay can leave narration from the previous swipe attached to the selected response. Reproduced with synthetic text on staging
04e328e06f97b42e1c6b05cbc8019309760ec17bin Chromium and WebKit.Expected behavior
Only the selected swipe's content appears, with its dialogue colours and Markdown formatting preserved.
Actual behavior
Italic narration from a speaker-tagged swipe remains in the DOM when switching back to a plain-text swipe. Repeated switches can accumulate fragments. Reloading clears the display; the saved message and both saved swipe bodies remain correct.
Steps to reproduce
BETA Lorem ipsum. This is the entire alternate swipe.Environment
04e328e06f97b42e1c6b05cbc8019309760ec17bLogs, screenshots, or video
Automated browser checks reproduced the failure in both engines beginning on the first return to the plain swipe. The displayed text included:
The same text with speaker tags removed passed three round trips in both engines. Stored contents were checked through the API and remained intact. No provider connection or private chat export is required.
Synthetic before/after screenshots
Before: old narration remains in the plain swipe.
After the renderer fix at
2b1c09ea2: only the selected plain swipe remains after three round trips, before refreshing.Additional context
The renderer flattens narration chunks from separate speaker sections into one sibling array, while each chunk restarts Markdown keys such as
mi0. Manually pasted speaker tags also reproduce this in a single-character chat.Implementation owned by @DSBwizzard using Codex. Scope: isolate each narration chunk's React keys and add a focused browser regression; preserve text, formatting, colours, and stored swipes.
@SpicyMarinara: this account cannot assign itself through the upstream assignment API; ownership is recorded above.
Template check