[GH-ISSUE #3514] [Issue]: Conversation mode edits user text when AI prepends character name #1901

Closed
opened 2026-10-21 05:43:39 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Conversation mode, AI replies can be parsed as part of the user's message when the AI prepends the character name to its messages except the first one. Editing the model response can expose/edit part of the user's message instead of only the model output.

Expected behavior

AI responses should be parsed as model messages, and editing a model response should only allow editing that model response.

Actual behavior

When the AI prepends the character name to later messages, the parser sometimes treats AI reply text as part of the user's message. Clicking to edit the model response in Conversation mode lets the user edit part of their own message.

Steps to reproduce

  1. Use Conversation mode.
  2. Generate a conversation where the AI prepends the character name to all messages except the first one.
  3. Click to edit the model's response.
  4. Observe that part of the user's message is editable as if it were part of the model response.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Two Discord image attachments were provided showing the issue: https://cdn.discordapp.com/attachments/1525751616056332300/1525751616307728384/image.png?ex=6a54866c&is=6a5334ec&hm=17265de7c3a4975913d813a41b3edad2b37ad9322a533a3c2bfed520fb5e349b& and https://cdn.discordapp.com/attachments/1525751616056332300/1525751616634880020/image.png?ex=6a54866c&is=6a5334ec&hm=cc72b3b4fc0b56d508888de107297648d78481a9101bcb2787acc9dd196c9725&

Additional context

Marinara suggested this may be related to newline splitting.

Discord thread: [Bug] [CONVO] AI replies are parsed as part of the user's message instead of the AI message sometime
Discord thread link: https://discord.com/channels/1417099416812392641/1525751616056332300
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-12T06:32:12.362Z] Kat: Discord title limit skill issue.

This happens when the AI, for whatever reason, prepends the char name to all its messages *except* the first one.

[attached image 1: https://cdn.discordapp.com/attachments/1525751616056332300/1525751616307728384/image.png?ex=6a54866c&is=6a5334ec&hm=17265de7c3a4975913d813a41b3edad2b37ad9322a533a3c2bfed520fb5e349b&]
[attached image 2: https://cdn.discordapp.com/attachments/1525751616056332300/1525751616634880020/image.png?ex=6a54866c&is=6a5334ec&hm=cc72b3b4fc0b56d508888de107297648d78481a9101bcb2787acc9dd196c9725&]
[Discord message: https://discord.com/channels/1417099416812392641/1525751616056332300/1525751616056332300]

[2026-07-12T09:26:59.901Z] Marinara: Ah, I see. Even though the message is yours, when you click to edit the model's response in Conversation mode, it lets you edit part of your message instead of only the model's response. I think it's a matter of new line splitting.
[Discord message: https://discord.com/channels/1417099416812392641/1525751616056332300/1525795603982975006]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3514 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Conversation mode, AI replies can be parsed as part of the user's message when the AI prepends the character name to its messages except the first one. Editing the model response can expose/edit part of the user's message instead of only the model output. ## Expected behavior AI responses should be parsed as model messages, and editing a model response should only allow editing that model response. ## Actual behavior When the AI prepends the character name to later messages, the parser sometimes treats AI reply text as part of the user's message. Clicking to edit the model response in Conversation mode lets the user edit part of their own message. ## Steps to reproduce 1. Use Conversation mode. 2. Generate a conversation where the AI prepends the character name to all messages except the first one. 3. Click to edit the model's response. 4. Observe that part of the user's message is editable as if it were part of the model response. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Two Discord image attachments were provided showing the issue: https://cdn.discordapp.com/attachments/1525751616056332300/1525751616307728384/image.png?ex=6a54866c&is=6a5334ec&hm=17265de7c3a4975913d813a41b3edad2b37ad9322a533a3c2bfed520fb5e349b& and https://cdn.discordapp.com/attachments/1525751616056332300/1525751616634880020/image.png?ex=6a54866c&is=6a5334ec&hm=cc72b3b4fc0b56d508888de107297648d78481a9101bcb2787acc9dd196c9725& ## Additional context Marinara suggested this may be related to newline splitting. Discord thread: [Bug] [CONVO] AI replies are parsed as part of the user's message instead of the AI message sometime Discord thread link: https://discord.com/channels/1417099416812392641/1525751616056332300 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-12T06:32:12.362Z] Kat: Discord title limit skill issue. This happens when the AI, for whatever reason, prepends the char name to all its messages *except* the first one. [attached image 1: https://cdn.discordapp.com/attachments/1525751616056332300/1525751616307728384/image.png?ex=6a54866c&is=6a5334ec&hm=17265de7c3a4975913d813a41b3edad2b37ad9322a533a3c2bfed520fb5e349b&] [attached image 2: https://cdn.discordapp.com/attachments/1525751616056332300/1525751616634880020/image.png?ex=6a54866c&is=6a5334ec&hm=cc72b3b4fc0b56d508888de107297648d78481a9101bcb2787acc9dd196c9725&] [Discord message: https://discord.com/channels/1417099416812392641/1525751616056332300/1525751616056332300] [2026-07-12T09:26:59.901Z] Marinara: Ah, I see. Even though the message is yours, when you click to edit the model's response in Conversation mode, it lets you edit part of your message instead of only the model's response. I think it's a matter of new line splitting. [Discord message: https://discord.com/channels/1417099416812392641/1525751616056332300/1525795603982975006] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:43:39 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

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

Implementation is now owned by the combined draft PR #3516. I am reproducing the reported path and will close this issue through that PR once its fix and regression proof are complete.

<!-- gh-comment-id:4950693162 --> @SpicyMarinara commented on GitHub (Jul 12, 2026): Implementation is now owned by the combined draft PR #3516. I am reproducing the reported path and will close this issue through that PR once its fix and regression proof are complete.
Author
Owner

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

Fixed in #3516 (commit d10626344): partially speaker-prefixed Conversation replies now attribute the leading unprefixed block to the saved assistant character, with shared parser and reaction-attribution coverage.

<!-- gh-comment-id:4950775998 --> @SpicyMarinara commented on GitHub (Jul 12, 2026): Fixed in #3516 (commit d10626344): partially speaker-prefixed Conversation replies now attribute the leading unprefixed block to the saved assistant character, with shared parser and reaction-attribution coverage.
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#1901
No description provided.