mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7509] Rewrite agents put earlier group replies into the last character's message #4180
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#4180
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 (Oct 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7509
Originally assigned to: @SpicyMarinara on GitHub.
What happens
In a group chat where characters reply one by one (individual mode), with Prose Guardian, Continuity or the HTML rewrite agent turned on, a turn where two or more characters reply ends badly: the last character's message gets every reply from that turn, rewritten together. The earlier characters' messages still show their own text, so their replies now appear twice, the second time inside another character's message.
It happens with "hold the reply until the rewrite is done" on or off. It does not happen when the last reply is split at scene breaks (#7507 already rewrites each part on its own).
Steps to reproduce
Why
The rewrite step is given the whole turn (every responder's reply joined together) and writes its result into the last responder's message.
Evidence
Reproduced through the real generate route with a fake rewrite agent, two responders (Dottore, then Cyno):
REPLY_FROM_Dottore.\n\nREPLY_FROM_Cyno.REWRITTEN REPLY_FROM_Dottore.\n\nREPLY_FROM_Cyno.stagingbefore #7497 (3066f0c72), so this is an older bug, not one #7497 or #7507 introduced.Expected
Rewrite agents only rewrite the text of the message they write into: the last responder's own reply (or each part of it, when split). Earlier responders' replies are never put into it.
@SpicyMarinara commented on GitHub (Oct 12, 2026):
Fixed on staging by #7510.