[GH-ISSUE #4731] [Issue]: Prompt shown twice after API 403 error #2598

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Roleplay mode, a sent prompt is duplicated in chat history when the API returns a 403 error. The duplicate entries appear linked because deleting the new copy removes both.

Expected behavior

The sent prompt should appear only once in chat history when the API returns a 403 error, and deleting one message should not unexpectedly remove another entry.

Actual behavior

After the API returns a 403 error, the sent prompt appears twice in chat history. Deleting the new copy deletes both messages, while the writing box remains empty.

Steps to reproduce

  1. Open a chat in Roleplay mode.
  2. Send a prompt that results in an API 403 error.
  3. Observe that the sent prompt appears twice in chat history.
  4. Delete the new copy and observe that both entries are removed.

Environment

  • Marinara Engine version: 2.4.1 (stable)
  • Install type: termux
  • OS + version: Android 16
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided in the Discord context.

Additional context

A maintainer asked whether the duplication also appears in logs, but no log details were provided.

Discord thread: Bug report - Prompt shown twice on API error
Discord thread link: https://discord.com/channels/1417099416812392641/1535365745775484998
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-07T19:15:19.509Z] Fussel: ME version: 2.4.1 (stable)
Installation method: Termux (Android 16)
Chatting mode: Roleplay

I noticed that when I send my prompt and the API returns a 403 error, the already sent message then appears twice in the chat history. Deleting the new copy deletes both messages from the chat history. The writing box stays empty though.
[Discord message: https://discord.com/channels/1417099416812392641/1535365745775484998/1535365745775484998]

[2026-08-07T19:15:37.224Z] Fussel: Bug report - Prompt shown twice on API error
[Discord message: https://discord.com/channels/1417099416812392641/1535365745775484998/1535365820077842524]

[2026-08-07T19:59:33.157Z] Marinara: In logs?
[Discord message: https://discord.com/channels/1417099416812392641/1535365745775484998/1535376875981897778]

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 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4731 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Roleplay mode, a sent prompt is duplicated in chat history when the API returns a 403 error. The duplicate entries appear linked because deleting the new copy removes both. ## Expected behavior The sent prompt should appear only once in chat history when the API returns a 403 error, and deleting one message should not unexpectedly remove another entry. ## Actual behavior After the API returns a 403 error, the sent prompt appears twice in chat history. Deleting the new copy deletes both messages, while the writing box remains empty. ## Steps to reproduce 1. Open a chat in Roleplay mode. 2. Send a prompt that results in an API 403 error. 3. Observe that the sent prompt appears twice in chat history. 4. Delete the new copy and observe that both entries are removed. ## Environment - Marinara Engine version: 2.4.1 (stable) - Install type: termux - OS + version: Android 16 - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided in the Discord context. ## Additional context A maintainer asked whether the duplication also appears in logs, but no log details were provided. Discord thread: Bug report - Prompt shown twice on API error Discord thread link: https://discord.com/channels/1417099416812392641/1535365745775484998 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-07T19:15:19.509Z] Fussel: ME version: 2.4.1 (stable) Installation method: Termux (Android 16) Chatting mode: Roleplay I noticed that when I send my prompt and the API returns a 403 error, the already sent message then appears twice in the chat history. Deleting the new copy deletes both messages from the chat history. The writing box stays empty though. [Discord message: https://discord.com/channels/1417099416812392641/1535365745775484998/1535365745775484998] [2026-08-07T19:15:37.224Z] Fussel: Bug report - Prompt shown twice on API error [Discord message: https://discord.com/channels/1417099416812392641/1535365745775484998/1535365820077842524] [2026-08-07T19:59:33.157Z] Marinara: In logs? [Discord message: https://discord.com/channels/1417099416812392641/1535365745775484998/1535376875981897778] ``` </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:51:02 +07:00
Author
Owner

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

SpicyMarinara/Codex is implementing this in draft PR #4736 on agent/assigned-issues-4718-4734.

<!-- gh-comment-id:5222380273 --> @SpicyMarinara commented on GitHub (Aug 7, 2026): SpicyMarinara/Codex is implementing this in draft PR #4736 on `agent/assigned-issues-4718-4734`.
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#2598
No description provided.