[GH-ISSUE #4127] [Issue]: End Session in Game mode ignores configured chat timeout #2236

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Clicking "End Session" in Game mode consistently results in a Body Timeout Error and an "Internal Server Error" in the web interface. Increasing CHAT_GENERATION_TIMEOUT_MS does not prevent the timeout.

Expected behavior

Session-end generation should complete successfully and respect the configured chat generation timeout.

Actual behavior

After clicking "End Session," the request waits briefly, then fails with a Body Timeout Error while the web interface displays "Internal Server Error."

Steps to reproduce

  1. Install Marinara Engine v2.3.4 using the Windows installer on Windows 10.
  2. Configure a local model and use Game mode.
  3. Set CHAT_GENERATION_TIMEOUT_MS=3600000 in the .env file.
  4. Start a Game mode session.
  5. Click "End Session."
  6. Wait for the Body Timeout Error and "Internal Server Error" response.

Environment

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

Logs, screenshots, or video

A screenshot containing the full error log was attached: https://cdn.discordapp.com/attachments/1530920957663772857/1530920958322544721/Snipaste_2026-07-26_20-51-36.jpg?ex=6a6754bf&is=6a66033f&hm=9b31dac8680c73015ab578b96df512fe06c7b5bcae67391ffeedc574acad3188&

Additional context

The user is running a potentially slow local model. A maintainer confirmed that session-end generation should respect modified chat timeout settings. The user would like the relevant timeout for this action to be configurable.

Discord thread: Issue Report: Body Timeout Error when clicking "End Session" in Game Mode
Discord thread link: https://discord.com/channels/1417099416812392641/1530920957663772857
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-07-26T12:53:19.443Z] Ds: Hello developers! ❤️

(Note: Since English is not my native language, I have asked Professor Mari to draft this on my behalf. I hope you can forgive me for this! 🙏)

I wanted to report an issue I've been encountering while using Game mode. Every time I click the "End Session" button, I receive a Body Timeout Error after a short wait. When the error occurs, the web interface displays "Internal Server Error."

**Error Log:**
(Please see the attached screenshot for the full error log! )

**Context:**
- OS version: Windows 10
- Installation method: Windows installer
- Current version of Marinara Engine: v2.3.4
- Chatting mode: Game
- I am running a local model, so it might be running a bit slow.
- I have already attempted to increase my timeout settings in my .env file (e.g., `CHAT_GENERATION_TIMEOUT_MS=3600000)`, but the error persists.

If it's possible, I would love to be able to configure the relevant waiting time for this action to help prevent this error.

Thank you so much for all the incredible work you do on Marinara Engine! I hope this information is helpful. 😊

[attached image 1: https://cdn.discordapp.com/attachments/1530920957663772857/1530920958322544721/Snipaste_2026-07-26_20-51-36.jpg?ex=6a6754bf&is=6a66033f&hm=9b31dac8680c73015ab578b96df512fe06c7b5bcae67391ffeedc574acad3188&]
[Discord message: https://discord.com/channels/1417099416812392641/1530920957663772857/1530920957663772857]

[2026-07-26T13:03:30.793Z] Marinara: Ah.
[Discord message: https://discord.com/channels/1417099416812392641/1530920957663772857/1530923521851523132]

[2026-07-26T13:03:49.771Z] Marinara: Yeah, the session end generation should respect chat timeouts if they were changed.
[Discord message: https://discord.com/channels/1417099416812392641/1530920957663772857/1530923601451159805]

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 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4127 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Clicking "End Session" in Game mode consistently results in a Body Timeout Error and an "Internal Server Error" in the web interface. Increasing CHAT_GENERATION_TIMEOUT_MS does not prevent the timeout. ## Expected behavior Session-end generation should complete successfully and respect the configured chat generation timeout. ## Actual behavior After clicking "End Session," the request waits briefly, then fails with a Body Timeout Error while the web interface displays "Internal Server Error." ## Steps to reproduce 1. Install Marinara Engine v2.3.4 using the Windows installer on Windows 10. 2. Configure a local model and use Game mode. 3. Set CHAT_GENERATION_TIMEOUT_MS=3600000 in the .env file. 4. Start a Game mode session. 5. Click "End Session." 6. Wait for the Body Timeout Error and "Internal Server Error" response. ## Environment - Marinara Engine version: v2.3.4 - Install type: installer - OS + version: Windows 10 - Browser or app shell: Not provided ## Logs, screenshots, or video A screenshot containing the full error log was attached: https://cdn.discordapp.com/attachments/1530920957663772857/1530920958322544721/Snipaste_2026-07-26_20-51-36.jpg?ex=6a6754bf&is=6a66033f&hm=9b31dac8680c73015ab578b96df512fe06c7b5bcae67391ffeedc574acad3188& ## Additional context The user is running a potentially slow local model. A maintainer confirmed that session-end generation should respect modified chat timeout settings. The user would like the relevant timeout for this action to be configurable. Discord thread: Issue Report: Body Timeout Error when clicking "End Session" in Game Mode Discord thread link: https://discord.com/channels/1417099416812392641/1530920957663772857 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-07-26T12:53:19.443Z] Ds: Hello developers! ❤️ (Note: Since English is not my native language, I have asked Professor Mari to draft this on my behalf. I hope you can forgive me for this! 🙏) I wanted to report an issue I've been encountering while using Game mode. Every time I click the "End Session" button, I receive a Body Timeout Error after a short wait. When the error occurs, the web interface displays "Internal Server Error." **Error Log:** (Please see the attached screenshot for the full error log! ) **Context:** - OS version: Windows 10 - Installation method: Windows installer - Current version of Marinara Engine: v2.3.4 - Chatting mode: Game - I am running a local model, so it might be running a bit slow. - I have already attempted to increase my timeout settings in my .env file (e.g., `CHAT_GENERATION_TIMEOUT_MS=3600000)`, but the error persists. If it's possible, I would love to be able to configure the relevant waiting time for this action to help prevent this error. Thank you so much for all the incredible work you do on Marinara Engine! I hope this information is helpful. 😊 [attached image 1: https://cdn.discordapp.com/attachments/1530920957663772857/1530920958322544721/Snipaste_2026-07-26_20-51-36.jpg?ex=6a6754bf&is=6a66033f&hm=9b31dac8680c73015ab578b96df512fe06c7b5bcae67391ffeedc574acad3188&] [Discord message: https://discord.com/channels/1417099416812392641/1530920957663772857/1530920957663772857] [2026-07-26T13:03:30.793Z] Marinara: Ah. [Discord message: https://discord.com/channels/1417099416812392641/1530920957663772857/1530923521851523132] [2026-07-26T13:03:49.771Z] Marinara: Yeah, the session end generation should respect chat timeouts if they were changed. [Discord message: https://discord.com/channels/1417099416812392641/1530920957663772857/1530923601451159805] ``` </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:30 +07:00
Author
Owner

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

Resolved by #4137 and merged into staging.

<!-- gh-comment-id:5084760122 --> @SpicyMarinara commented on GitHub (Jul 26, 2026): Resolved by #4137 and merged into `staging`.
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#2236
No description provided.