mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8661] [Issue]: Message text renders duplicated or misplaced after speaker-tag updates #8447
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#8447
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 @SpicyMarinara on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8661
Originally assigned to: @SpicyMarinara on GitHub.
Summary
After a custom post-processing agent changes speaker-tag boundaries in a merged RP message, the displayed text can contain duplicated or misplaced words. The underlying text appears intact: entering and exiting edit mode without changes restores the correct display.
Expected behavior
Updated messages should render their narration and dialogue text correctly, without duplicated or misplaced words.
Actual behavior
Some updated messages display duplicated or misplaced text until they are remounted by entering and exiting edit mode.
Steps to reproduce
Environment
Logs, screenshots, or video
A local browser test using renderWithSpeakerTags() and highlightDialogue() reproduced the issue when changing only speaker-tag boundaries: expected
Alpha "One" Beta "Two" Gamma; after updating,AlphaAlpha "One"Beta Beta "Two" Gamma; after remounting, the correct text returned. React reported duplicate child-key warnings. No screenshot or video provided.Additional context
The reporter suspects duplicate React keys: narration segments are flattened with dialogue into one children array, while key counters restart on each call. The same rendering logic was found in the reporter's staging build. The exact affected message was not tested separately, so the reproduction is suggestive rather than confirmed for that message. Consider checking key uniqueness across narration and dialogue segments in ChatMessage.tsx. Active connection: Nano; provider: nanogpt; model: xiaomi/mimo-v2.6-pro.
Discord thread: Message text becomes visually corrupted after a custom agent changes message
Discord thread link: https://discord.com/channels/1417099416812392641/1566552493729775676
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (3 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@coderabbitai[bot] commented on GitHub (Nov 1, 2026):
⚠️ Possible Duplicate Issue(s)
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
@SpicyMarinara commented on GitHub (Nov 1, 2026):
Fixed on staging by #8632; #8670 adds a regression for this exact scenario (speaker-tag boundaries moving over the same words). Users on v2.5.1 keep seeing it until staging is promoted to main.