[GH-ISSUE #744] [Issue]: Regenerating after hiding recent RP messages from AI can crash the server #354

Closed
opened 2026-10-20 17:27:57 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @cha1latte on GitHub.

Summary

Regenerating a Roleplay reply after several recent messages are marked hidden from AI can crash the Marinara Engine server. The visible error includes Fastify's Reply was already sent message, and the browser can no longer connect to 127.0.0.1:7860 until the app is manually reopened.

Expected behavior

Regenerating should either succeed while respecting hiddenFromAI messages, or fail gracefully with a user-visible error. It should not crash the server process.

Actual behavior

After hiding several recent replies from AI and pressing regenerate, Marinara crashes. The reporter's screenshot shows the browser connection failure page and a terminal stack trace containing Reply was already sent from Fastify.

The reporter recovered by manually reopening the app and making the affected messages no longer hidden from AI.

Steps to reproduce

  1. Open a Roleplay mode chat.
  2. Mark the latest reply plus the previous 3 replies as hidden from AI / hidden from context.
  3. Press Regenerate on the AI-hidden message or affected reply.
  4. Observe an error and server crash.

Environment

  • Marinara Engine version: 1.5.9
  • Install type: installer / .exe installer
  • OS + version: Windows 10
  • Browser or app shell: Browser

Logs, screenshots, or video

Discord screenshot/report from 12 May 2026 shows:

  • Browser cannot connect to 127.0.0.1:7860 after the crash.
  • Terminal output includes a Fastify stack trace with Reply was already sent.

Additional context

The reporter initially confused the hide/reply controls and accidentally marked multiple recent messages hidden from AI. They noted that user error in the UI should not be able to crash the engine.

Temporary workaround: unhide the affected messages from AI / context before regenerating.

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 @Xelvanis on GitHub (May 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/744 Originally assigned to: @cha1latte on GitHub. ## Summary Regenerating a Roleplay reply after several recent messages are marked **hidden from AI** can crash the Marinara Engine server. The visible error includes Fastify's `Reply was already sent` message, and the browser can no longer connect to `127.0.0.1:7860` until the app is manually reopened. ## Expected behavior Regenerating should either succeed while respecting `hiddenFromAI` messages, or fail gracefully with a user-visible error. It should not crash the server process. ## Actual behavior After hiding several recent replies from AI and pressing regenerate, Marinara crashes. The reporter's screenshot shows the browser connection failure page and a terminal stack trace containing `Reply was already sent` from Fastify. The reporter recovered by manually reopening the app and making the affected messages no longer hidden from AI. ## Steps to reproduce 1. Open a Roleplay mode chat. 2. Mark the latest reply plus the previous 3 replies as **hidden from AI** / hidden from context. 3. Press **Regenerate** on the AI-hidden message or affected reply. 4. Observe an error and server crash. ## Environment - Marinara Engine version: 1.5.9 - Install type: installer / .exe installer - OS + version: Windows 10 - Browser or app shell: Browser ## Logs, screenshots, or video Discord screenshot/report from 12 May 2026 shows: - Browser cannot connect to `127.0.0.1:7860` after the crash. - Terminal output includes a Fastify stack trace with `Reply was already sent`. ## Additional context The reporter initially confused the hide/reply controls and accidentally marked multiple recent messages hidden from AI. They noted that user error in the UI should not be able to crash the engine. Temporary workaround: unhide the affected messages from AI / context before regenerating. ## 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-20 17:27:57 +07:00
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#354
No description provided.