[GH-ISSUE #7509] Rewrite agents put earlier group replies into the last character's message #4180

Closed
opened 2026-10-21 06:12:09 +07:00 by bsakaguchi · 1 comment
Owner

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

  1. Create a Roleplay group chat with two characters and set group replies to individual.
  2. Turn on Prose Guardian (or Continuity, or the HTML agent).
  3. Send a message so both characters reply.
  4. Look at the second character's message: it starts with the first character's reply, then its own.

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):

  • The rewrite agent was given REPLY_FROM_Dottore.\n\nREPLY_FROM_Cyno.
  • Cyno's saved message became REWRITTEN REPLY_FROM_Dottore.\n\nREPLY_FROM_Cyno.
  • Same result on staging before #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.

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 1. Create a Roleplay group chat with two characters and set group replies to individual. 2. Turn on Prose Guardian (or Continuity, or the HTML agent). 3. Send a message so both characters reply. 4. Look at the second character's message: it starts with the first character's reply, then its own. ## 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): - The rewrite agent was given `REPLY_FROM_Dottore.\n\nREPLY_FROM_Cyno.` - Cyno's saved message became `REWRITTEN REPLY_FROM_Dottore.\n\nREPLY_FROM_Cyno.` - Same result on `staging` before #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.
bsakaguchi 2026-10-21 06:12:09 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Oct 12, 2026):

Fixed on staging by #7510.

<!-- gh-comment-id:6133997480 --> @SpicyMarinara commented on GitHub (Oct 12, 2026): Fixed on staging by #7510.
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#4180
No description provided.