[GH-ISSUE #4200] [Issue]: Input field is not cleared after stopping generation #2275

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When a message is sent and generation is stopped before the response finishes, the message is correctly added to chat history but remains in the input field. The input should be cleared when the message is sent.

Expected behavior

The input field should be cleared immediately after sending the message, including when generation is later stopped.

Actual behavior

After clicking "Stop Generation" before the response finishes, the sent message appears in chat history but its text remains in the input field.

Steps to reproduce

  1. Enter a message in the input field.
  2. Send the message and wait for generation to begin.
  3. Click "Stop Generation" before the response finishes.
  4. Observe that the message appears in chat history while its text remains in the input field.

Environment

  • Marinara Engine version: 2.3.4
  • Install type: installer
  • OS + version: Windows 10
  • Browser or app shell: Not provided

Logs, screenshots, or video

Screenshot attached: https://cdn.discordapp.com/attachments/1531508194902540448/1531553952619954298/image.png?ex=6a69a245&is=6a6850c5&hm=749d16e819c489577e436ecbfb8df833dd6e6fe1756be4a3483424620b45f229&

Additional context

The issue was independently reported by another user. The reported usage mode was Roleplay.

Discord thread: Input field isn't cleared after sending a message and clicking Stop Generation
Discord thread link: https://discord.com/channels/1417099416812392641/1531508194902540448
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (8 messages)
[2026-07-28T03:46:47.711Z] IsThisAi: When I send a message and then click "stop generation" before the response finishes, the message correctly appears in the chat history, but the text I typed remains in the input field instead of being cleared. 

Very counter-intuitive, either empty the response area or don't post the message in chat if the users cancels the generation. 

Version 2.3.4
Installer exe
Roleplay
WIN 10
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531508194902540448]

[2026-07-28T06:13:42.145Z] Marinara: I actually think your proposition is the counter-intuitive one. There are multiple reasons for stopping generation, and I never once wanted my message I just wrote to be deleted. I only wanted to adjust one, two things by editing it. Alternatively, if someone really wants to delete it, they still can do it.
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531545165318328352]

[2026-07-28T06:48:37.294Z] uggabooga3: I too am experiencing this issue, when you cancel a message, the message still gets sent, but also remains in the text box. It feels a bit unintuitive to me. I attached a screenshot to clarify this.

[attached image 1: https://cdn.discordapp.com/attachments/1531508194902540448/1531553952619954298/image.png?ex=6a69a245&is=6a6850c5&hm=749d16e819c489577e436ecbfb8df833dd6e6fe1756be4a3483424620b45f229&]
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531553953010155671]

[2026-07-28T06:57:18.482Z] Marinara: Ohhh, you meant it that way.
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556139031068752]

[2026-07-28T06:57:26.138Z] Marinara: Sorry, read it when I woke up.
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556171142402139]

[2026-07-28T06:57:34.121Z] Marinara: I thought you meant the sent message is supposed to be deleted.
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556204625526784]

[2026-07-28T06:57:37.098Z] Marinara: :monaks:
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556217111973969]

[2026-07-28T06:57:47.051Z] Marinara: Then yeah, absolutely, the input box should clear as soon as we send the message.
[Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556258857881650]

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 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4200 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When a message is sent and generation is stopped before the response finishes, the message is correctly added to chat history but remains in the input field. The input should be cleared when the message is sent. ## Expected behavior The input field should be cleared immediately after sending the message, including when generation is later stopped. ## Actual behavior After clicking "Stop Generation" before the response finishes, the sent message appears in chat history but its text remains in the input field. ## Steps to reproduce 1. Enter a message in the input field. 2. Send the message and wait for generation to begin. 3. Click "Stop Generation" before the response finishes. 4. Observe that the message appears in chat history while its text remains in the input field. ## Environment - Marinara Engine version: 2.3.4 - Install type: installer - OS + version: Windows 10 - Browser or app shell: Not provided ## Logs, screenshots, or video Screenshot attached: https://cdn.discordapp.com/attachments/1531508194902540448/1531553952619954298/image.png?ex=6a69a245&is=6a6850c5&hm=749d16e819c489577e436ecbfb8df833dd6e6fe1756be4a3483424620b45f229& ## Additional context The issue was independently reported by another user. The reported usage mode was Roleplay. Discord thread: Input field isn't cleared after sending a message and clicking Stop Generation Discord thread link: https://discord.com/channels/1417099416812392641/1531508194902540448 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (8 messages)</summary> ```text [2026-07-28T03:46:47.711Z] IsThisAi: When I send a message and then click "stop generation" before the response finishes, the message correctly appears in the chat history, but the text I typed remains in the input field instead of being cleared. Very counter-intuitive, either empty the response area or don't post the message in chat if the users cancels the generation. Version 2.3.4 Installer exe Roleplay WIN 10 [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531508194902540448] [2026-07-28T06:13:42.145Z] Marinara: I actually think your proposition is the counter-intuitive one. There are multiple reasons for stopping generation, and I never once wanted my message I just wrote to be deleted. I only wanted to adjust one, two things by editing it. Alternatively, if someone really wants to delete it, they still can do it. [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531545165318328352] [2026-07-28T06:48:37.294Z] uggabooga3: I too am experiencing this issue, when you cancel a message, the message still gets sent, but also remains in the text box. It feels a bit unintuitive to me. I attached a screenshot to clarify this. [attached image 1: https://cdn.discordapp.com/attachments/1531508194902540448/1531553952619954298/image.png?ex=6a69a245&is=6a6850c5&hm=749d16e819c489577e436ecbfb8df833dd6e6fe1756be4a3483424620b45f229&] [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531553953010155671] [2026-07-28T06:57:18.482Z] Marinara: Ohhh, you meant it that way. [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556139031068752] [2026-07-28T06:57:26.138Z] Marinara: Sorry, read it when I woke up. [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556171142402139] [2026-07-28T06:57:34.121Z] Marinara: I thought you meant the sent message is supposed to be deleted. [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556204625526784] [2026-07-28T06:57:37.098Z] Marinara: :monaks: [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556217111973969] [2026-07-28T06:57:47.051Z] Marinara: Then yeah, absolutely, the input box should clear as soon as we send the message. [Discord message: https://discord.com/channels/1417099416812392641/1531508194902540448/1531556258857881650] ``` </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:46:54 +07:00
Author
Owner

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

Regression verification is claimed by @SpicyMarinara on agent/assigned-issues-4195-4198. I’m adding the exact Roleplay send-then-stop sequence to the shared staging-targeted draft PR #4199, including the distinction between clearing the sent text immediately and preserving any new unsent draft typed while generation is running.

<!-- gh-comment-id:5100982263 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Regression verification is claimed by @SpicyMarinara on `agent/assigned-issues-4195-4198`. I’m adding the exact Roleplay send-then-stop sequence to the shared staging-targeted draft PR #4199, including the distinction between clearing the sent text immediately and preserving any new unsent draft typed while generation is running.
Author
Owner

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

Fixed on staging via #4199 (a97cc55d6). An intentional stop now counts as successful once the request submitted a user turn, even before the first assistant token, so already-sent text stays cleared while the user message remains durable. The exact send-then-stop-before-token case passed in Playwright and after reload.

<!-- gh-comment-id:5101518926 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Fixed on `staging` via #4199 (`a97cc55d6`). An intentional stop now counts as successful once the request submitted a user turn, even before the first assistant token, so already-sent text stays cleared while the user message remains durable. The exact send-then-stop-before-token case passed in Playwright and after reload.
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#2275
No description provided.