[GH-ISSUE #4947] [Issue]: Professor Mari duplicates canceled prompts and ignores first edit attempt #2746

Closed
opened 2026-10-21 05:54:19 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Professor Mari chats show two regressions previously fixed in regular chat modes: canceled generations copy the user's prompt back into the writing box, and editing a sent user message does not work on the first attempt.

Expected behavior

Canceling a response generation should not copy an already-sent prompt into the writing box. Editing a previously sent user message should work on the first attempt.

Actual behavior

After canceling Professor Mari's response generation, the prompt appears in the writing box while remaining in the chat history. The first attempt to edit a previously sent user message is not processed.

Steps to reproduce

  1. Open a chat in Professor Mari (assistant) mode.
  2. Send a prompt and cancel Professor Mari's response generation.
  3. Observe that the sent prompt is copied into the writing box while also remaining in the chat history.
  4. Attempt to edit one of your previously sent messages.
  5. Observe that the first edit attempt is not processed.

Environment

  • Marinara Engine version: 2.4.2 staging (c52695c)
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided in the Discord context.

Additional context

The reporter suspects the prompt-duplication issue may also occur when the API returns an error, but this was not confirmed. They also report that Professor Mari does not offer a way to retry generating a response to an already-sent message. Both confirmed behaviors previously existed in regular chats, such as Roleplay mode, and were reportedly fixed there, suggesting Professor Mari may not share the same fixes.

Discord thread: Bug report - Multiple Professor Mari prompt issues
Discord thread link: https://discord.com/channels/1417099416812392641/1537061996195876984
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-12T11:35:37.124Z] Fussel: ME version: 2.4.2 staging (c52695c)
Chat mode: Professor Mari (assistant)

I found that talking with Professor Mari produces two bugs that had been already fixed in regular (eg. Roleplay mode) chats.

Firstly, it seems that when I cancel the generation of Professor Maris response, or alternatively probably also when the API reports an error, the prompt is copied into the writing box whilst also existing in the chat area/chat history already.

Secondly, when I try to edit my own previously sent message in the chat history/chat area, it does not process the first attempt.

Additionally, why can't I retry to generate the response to an already sent message?

Both of these are issues that had previously existed before in regular chatting modes of ME.

I don't know if more bugs remain inside Professor Mari conversations that have been addressed inside regular chatting (with cards), but this seems like a sign for a broader necessary improvement. Hopefully bug-fixes in regular chats are also applying to Professor Mari in the future, just saying.
[Discord message: https://discord.com/channels/1417099416812392641/1537061996195876984/1537061996195876984]

[2026-08-12T12:23:03.417Z] Marinara: Entitled much.
[Discord message: https://discord.com/channels/1417099416812392641/1537061996195876984/1537073934414127105]

[2026-08-12T12:23:15.445Z] Marinara: Next time skip the last part.
[Discord message: https://discord.com/channels/1417099416812392641/1537061996195876984/1537073984863080549]

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 (Aug 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4947 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Professor Mari chats show two regressions previously fixed in regular chat modes: canceled generations copy the user's prompt back into the writing box, and editing a sent user message does not work on the first attempt. ## Expected behavior Canceling a response generation should not copy an already-sent prompt into the writing box. Editing a previously sent user message should work on the first attempt. ## Actual behavior After canceling Professor Mari's response generation, the prompt appears in the writing box while remaining in the chat history. The first attempt to edit a previously sent user message is not processed. ## Steps to reproduce 1. Open a chat in Professor Mari (assistant) mode. 2. Send a prompt and cancel Professor Mari's response generation. 3. Observe that the sent prompt is copied into the writing box while also remaining in the chat history. 4. Attempt to edit one of your previously sent messages. 5. Observe that the first edit attempt is not processed. ## Environment - Marinara Engine version: 2.4.2 staging (c52695c) - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided in the Discord context. ## Additional context The reporter suspects the prompt-duplication issue may also occur when the API returns an error, but this was not confirmed. They also report that Professor Mari does not offer a way to retry generating a response to an already-sent message. Both confirmed behaviors previously existed in regular chats, such as Roleplay mode, and were reportedly fixed there, suggesting Professor Mari may not share the same fixes. Discord thread: Bug report - Multiple Professor Mari prompt issues Discord thread link: https://discord.com/channels/1417099416812392641/1537061996195876984 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-12T11:35:37.124Z] Fussel: ME version: 2.4.2 staging (c52695c) Chat mode: Professor Mari (assistant) I found that talking with Professor Mari produces two bugs that had been already fixed in regular (eg. Roleplay mode) chats. Firstly, it seems that when I cancel the generation of Professor Maris response, or alternatively probably also when the API reports an error, the prompt is copied into the writing box whilst also existing in the chat area/chat history already. Secondly, when I try to edit my own previously sent message in the chat history/chat area, it does not process the first attempt. Additionally, why can't I retry to generate the response to an already sent message? Both of these are issues that had previously existed before in regular chatting modes of ME. I don't know if more bugs remain inside Professor Mari conversations that have been addressed inside regular chatting (with cards), but this seems like a sign for a broader necessary improvement. Hopefully bug-fixes in regular chats are also applying to Professor Mari in the future, just saying. [Discord message: https://discord.com/channels/1417099416812392641/1537061996195876984/1537061996195876984] [2026-08-12T12:23:03.417Z] Marinara: Entitled much. [Discord message: https://discord.com/channels/1417099416812392641/1537061996195876984/1537073934414127105] [2026-08-12T12:23:15.445Z] Marinara: Next time skip the last part. [Discord message: https://discord.com/channels/1417099416812392641/1537061996195876984/1537073984863080549] ``` </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:54:19 +07:00
Author
Owner

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

SpicyMarinara is taking this in the current assigned-issue sweep. I’m preparing a draft PR against staging and will link it here before implementation continues.

<!-- gh-comment-id:5267046194 --> @SpicyMarinara commented on GitHub (Aug 12, 2026): SpicyMarinara is taking this in the current assigned-issue sweep. I’m preparing a draft PR against `staging` and will link it here before implementation continues.
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#2746
No description provided.