[GH-ISSUE #7177] [Issue]: GM mode ignores configured generation timeout for Qwen3.8-27B #4007

Closed
opened 2026-10-21 06:09:29 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

GM mode continues to time out at exactly 300 seconds with Qwen3.8-27B despite changing Advanced Settings and CHAT_GENERATION_TIMEOUT_MS to 3600 seconds. Timeout behavior differs by model, as gemma-4-31B can exceed 300 seconds even when configured for a 20-second timeout.

Expected behavior

GM mode should apply the configured text-generation timeout consistently to new games and across supported models.

Actual behavior

Qwen3.8-27B still fails exactly at 300 seconds regardless of configured timeout values, including 3600 seconds or 20 seconds. gemma-4-31B can exceed 300 seconds and succeed despite a configured 20-second timeout.

Steps to reproduce

  1. Use Marinara Engine staging/UAT build 974faeb or stable v2.5.0.
  2. Delete packages/server/data to force a fresh data load.
  3. Start a new GM mode game using Qwen3.8-27B.
  4. Set the Advanced Settings text-generation/request timeout to 3600 seconds and/or set CHAT_GENERATION_TIMEOUT_MS=3600000 in .env, then restart.
  5. Observe that generation still fails at exactly 300 seconds.
  6. Optionally set the timeout to 20 seconds and CHAT_GENERATION_TIMEOUT_MS=20000, then compare Qwen3.8-27B with gemma-4-31B.

Environment

  • Marinara Engine version: 2.5.0, build 2.5.0+7e28236962a0, commit 7e28236962; also observed on staging/UAT build 974faeb
  • Install type: Not provided
  • OS + version: Windows 10.0 (x64)
  • Browser or app shell: Microsoft Edge 154.0.0.0 (Chromium-based app/browser shell)

Logs, screenshots, or video

Support Diagnostics: active connection llama.cpp; custom provider; model Qwen3.8-27B-UD-Q8_K_XL; server GPU NVIDIA GeForce RTX 2060 12 GB; no logs provided. Screenshots attached in the Discord report, including Advanced Settings and timeout configuration.

Additional context

The user deleted packages/server/data and restarted after changing settings. Removing timeout settings from .env and relying only on Advanced Settings produced the same result. gemma-4-31B reportedly succeeds after exceeding 300 seconds even when the configured timeout is 20 seconds. Earlier report was marked addressed in staging, but the issue remains. Agent version and support diagnostics beyond the supplied diagnostic are not provided.

Discord thread: [Follow-up] GameGenerationTimeoutError in GM Mode (Still occurring at 300s)
Discord thread link: https://discord.com/channels/1417099416812392641/1557110747031674980
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (7 messages)
[2026-10-06T19:22:11.811Z] Ds: Hello developers! ❤️

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

*(Note: These tests were performed on Staging/UAT a few hours before the v2.5.0 release. I have since updated to the latest stable version, v2.5.0, and performed a quick check, but found no obvious differences. 
Regardless, congratulations on the v2.5.0 release! 🎉 I'm really excited to see the progress!)*

---

I’m following up on my earlier `GameGenerationTimeoutError` report in GM mode. 
Despite the “Addressed in staging” reply, the issue persists on my end.

I have updated to Staging/UAT build 974faeb and deleted `\packages\server\data` to force a fresh data load. 
I then started new games with Qwen3.8-27B and gemma-4-31B.

However, the settings still don't seem to take effect: new games still time out at 300 seconds when using Qwen3.8-27B. 
I tried adjusting both "Request timeouts" in Advanced Settings and `CHAT_GENERATION_TIMEOUT_MS` in the `.env` file and restarting, but it still times out at 300s rather than my custom value of 3600s.

Interestingly, if “Text generation” under Request timeouts is set to 20 seconds and `CHAT_GENERATION_TIMEOUT_MS=20000`, gemma-4-31B can still exceed 300 seconds and succeed (rather than stopping at 20 seconds), while Qwen3.8-27B still fails exactly at 300 seconds (not 20). 

Removing all timeout settings from `.env` to try the Advanced Settings handle the process exclusively yields the same result.

I'm not entirely sure what's causing this discrepancy, but I wanted to share these observations. 
I would truly appreciate any guidance or help you can provide! 🙏

Previous post: https://discord.com/channels/1417099416812392641/1553102772877131786/1553102772877131786

[attached image 1: https://cdn.discordapp.com/attachments/1557110747031674980/1557110748499550298/Snipaste_2026-10-07_03-21-38.jpg?backend=b2&ex=6ac69be4&is=6ac54a64&hm=5289480b151514a566fd528816bdacec3a20b87649841fe9b7bbef339149aa48&]
[Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557110747031674980]

[2026-10-06T19:22:15.509Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557110762542080124]

[2026-10-06T19:22:39.379Z] Ds: ` ` `
Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0+7e28236962a0
Commit: 7e28236962a0
Server OS: Windows 10.0.18362 (x64)
Server memory: heap 81 / 4288 MiB; RSS 138.4 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: shut down cleanly at 2026-10-06T18:15:05.943Z
Sessions ended without shutdown: 1 recorded
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36 Edg/154.0.0.0
Client runtime: {"build":"2.5.0+7e28236962a0","page":"mux04o50-aquqpc1b","persistence":"local","navigation":"reload","standalone":false,"view":[956,0,0,0],"events":[]}
GPU: ANGLE (Microsoft, Microsoft Basic Render Driver (0x0000008C) Direct3D11 vs_5_0 ps_5_0, D3D11)
Server GPU: NVIDIA GeForce RTX 2060, 12288 MiB total, 779 MiB used, driver 546.29
Main sidecar: not configured
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured
Active connection: llama.cpp
Connection provider: custom
LLM model: Qwen3.8-27B-UD-Q8_K_XL
Mari last acted on: none recorded this session
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557110862660112457]

[2026-10-06T19:24:56.264Z] Marinara: Have you changed them here?

[attached image 1: https://cdn.discordapp.com/attachments/1557110747031674980/1557111436386373703/Screenshot_2026-10-06_at_21.23.56.png?backend=b2&ex=6ac69c88&is=6ac54b08&hm=469ac54e9564c8302e55b325f70177818b64cb0f672e7728363b2dbcf79813e3&]
[Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557111436797546566]

[2026-10-06T19:25:03.464Z] Marinara: Advanced Settings.
[Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557111466996400279]

[2026-10-06T19:28:00.026Z] Ds: Yes, I changed it several times.

[attached image 1: https://cdn.discordapp.com/attachments/1557110747031674980/1557112206603063317/Snipaste_2026-10-07_03-26-02.jpg?backend=b2&ex=6ac69d3f&is=6ac54bbf&hm=6bc59304c6337d01b9faab604d28eb2eedef1373ab3863c7e21b43da685b5cf2&]
[Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557112207550980216]

[2026-10-06T19:29:02.843Z] Marinara: Could it be model-specific? If other models respect the change?
[Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557112471024701513]

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 (Oct 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7177 Originally assigned to: @SpicyMarinara on GitHub. ## Summary GM mode continues to time out at exactly 300 seconds with Qwen3.8-27B despite changing Advanced Settings and CHAT_GENERATION_TIMEOUT_MS to 3600 seconds. Timeout behavior differs by model, as gemma-4-31B can exceed 300 seconds even when configured for a 20-second timeout. ## Expected behavior GM mode should apply the configured text-generation timeout consistently to new games and across supported models. ## Actual behavior Qwen3.8-27B still fails exactly at 300 seconds regardless of configured timeout values, including 3600 seconds or 20 seconds. gemma-4-31B can exceed 300 seconds and succeed despite a configured 20-second timeout. ## Steps to reproduce 1. Use Marinara Engine staging/UAT build 974faeb or stable v2.5.0. 2. Delete packages/server/data to force a fresh data load. 3. Start a new GM mode game using Qwen3.8-27B. 4. Set the Advanced Settings text-generation/request timeout to 3600 seconds and/or set CHAT_GENERATION_TIMEOUT_MS=3600000 in .env, then restart. 5. Observe that generation still fails at exactly 300 seconds. 6. Optionally set the timeout to 20 seconds and CHAT_GENERATION_TIMEOUT_MS=20000, then compare Qwen3.8-27B with gemma-4-31B. ## Environment - Marinara Engine version: 2.5.0, build 2.5.0+7e28236962a0, commit 7e28236962a0; also observed on staging/UAT build 974faeb - Install type: Not provided - OS + version: Windows 10.0 (x64) - Browser or app shell: Microsoft Edge 154.0.0.0 (Chromium-based app/browser shell) ## Logs, screenshots, or video Support Diagnostics: active connection llama.cpp; custom provider; model Qwen3.8-27B-UD-Q8_K_XL; server GPU NVIDIA GeForce RTX 2060 12 GB; no logs provided. Screenshots attached in the Discord report, including Advanced Settings and timeout configuration. ## Additional context The user deleted packages/server/data and restarted after changing settings. Removing timeout settings from .env and relying only on Advanced Settings produced the same result. gemma-4-31B reportedly succeeds after exceeding 300 seconds even when the configured timeout is 20 seconds. Earlier report was marked addressed in staging, but the issue remains. Agent version and support diagnostics beyond the supplied diagnostic are not provided. Discord thread: [Follow-up] GameGenerationTimeoutError in GM Mode (Still occurring at 300s) Discord thread link: https://discord.com/channels/1417099416812392641/1557110747031674980 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (7 messages)</summary> ```text [2026-10-06T19:22:11.811Z] Ds: Hello developers! ❤️ (Since English is not my native language, I have asked AI to draft this on my behalf. I hope you can forgive me for this! 🙏) *(Note: These tests were performed on Staging/UAT a few hours before the v2.5.0 release. I have since updated to the latest stable version, v2.5.0, and performed a quick check, but found no obvious differences. Regardless, congratulations on the v2.5.0 release! 🎉 I'm really excited to see the progress!)* --- I’m following up on my earlier `GameGenerationTimeoutError` report in GM mode. Despite the “Addressed in staging” reply, the issue persists on my end. I have updated to Staging/UAT build 974faeb and deleted `\packages\server\data` to force a fresh data load. I then started new games with Qwen3.8-27B and gemma-4-31B. However, the settings still don't seem to take effect: new games still time out at 300 seconds when using Qwen3.8-27B. I tried adjusting both "Request timeouts" in Advanced Settings and `CHAT_GENERATION_TIMEOUT_MS` in the `.env` file and restarting, but it still times out at 300s rather than my custom value of 3600s. Interestingly, if “Text generation” under Request timeouts is set to 20 seconds and `CHAT_GENERATION_TIMEOUT_MS=20000`, gemma-4-31B can still exceed 300 seconds and succeed (rather than stopping at 20 seconds), while Qwen3.8-27B still fails exactly at 300 seconds (not 20). Removing all timeout settings from `.env` to try the Advanced Settings handle the process exclusively yields the same result. I'm not entirely sure what's causing this discrepancy, but I wanted to share these observations. I would truly appreciate any guidance or help you can provide! 🙏 Previous post: https://discord.com/channels/1417099416812392641/1553102772877131786/1553102772877131786 [attached image 1: https://cdn.discordapp.com/attachments/1557110747031674980/1557110748499550298/Snipaste_2026-10-07_03-21-38.jpg?backend=b2&ex=6ac69be4&is=6ac54a64&hm=5289480b151514a566fd528816bdacec3a20b87649841fe9b7bbef339149aa48&] [Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557110747031674980] [2026-10-06T19:22:15.509Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557110762542080124] [2026-10-06T19:22:39.379Z] Ds: ` ` ` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0+7e28236962a0 Commit: 7e28236962a0 Server OS: Windows 10.0.18362 (x64) Server memory: heap 81 / 4288 MiB; RSS 138.4 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: shut down cleanly at 2026-10-06T18:15:05.943Z Sessions ended without shutdown: 1 recorded Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36 Edg/154.0.0.0 Client runtime: {"build":"2.5.0+7e28236962a0","page":"mux04o50-aquqpc1b","persistence":"local","navigation":"reload","standalone":false,"view":[956,0,0,0],"events":[]} GPU: ANGLE (Microsoft, Microsoft Basic Render Driver (0x0000008C) Direct3D11 vs_5_0 ps_5_0, D3D11) Server GPU: NVIDIA GeForce RTX 2060, 12288 MiB total, 779 MiB used, driver 546.29 Main sidecar: not configured Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured Active connection: llama.cpp Connection provider: custom LLM model: Qwen3.8-27B-UD-Q8_K_XL Mari last acted on: none recorded this session ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557110862660112457] [2026-10-06T19:24:56.264Z] Marinara: Have you changed them here? [attached image 1: https://cdn.discordapp.com/attachments/1557110747031674980/1557111436386373703/Screenshot_2026-10-06_at_21.23.56.png?backend=b2&ex=6ac69c88&is=6ac54b08&hm=469ac54e9564c8302e55b325f70177818b64cb0f672e7728363b2dbcf79813e3&] [Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557111436797546566] [2026-10-06T19:25:03.464Z] Marinara: Advanced Settings. [Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557111466996400279] [2026-10-06T19:28:00.026Z] Ds: Yes, I changed it several times. [attached image 1: https://cdn.discordapp.com/attachments/1557110747031674980/1557112206603063317/Snipaste_2026-10-07_03-26-02.jpg?backend=b2&ex=6ac69d3f&is=6ac54bbf&hm=6bc59304c6337d01b9faab604d28eb2eedef1373ab3863c7e21b43da685b5cf2&] [Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557112207550980216] [2026-10-06T19:29:02.843Z] Marinara: Could it be model-specific? If other models respect the change? [Discord message: https://discord.com/channels/1417099416812392641/1557110747031674980/1557112471024701513] ``` </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 06:09:29 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Oct 6, 2026):

Claude is taking this issue for @SpicyMarinara. I checked for linked, open and draft PRs first; none exist. The fix will target staging.

Lead being verified: 300 seconds is exactly the default headersTimeout/bodyTimeout of undici, the HTTP client inside Node. A reasoning model like Qwen that sends nothing for a long time (or a request that isn't streamed) would be cut at 300 s whatever our setting says. Gemma running past a 20 s setting suggests the GM path doesn't apply the configured text-generation timeout at all. Next: trace every timeout on the GM request path, find why the earlier fix didn't cover this, and add a regression with a slow fake server so the configured timeout governs in both directions.

<!-- gh-comment-id:6023959520 --> @SpicyMarinara commented on GitHub (Oct 6, 2026): Claude is taking this issue for @SpicyMarinara. I checked for linked, open and draft PRs first; none exist. The fix will target `staging`. Lead being verified: 300 seconds is exactly the default `headersTimeout`/`bodyTimeout` of undici, the HTTP client inside Node. A reasoning model like Qwen that sends nothing for a long time (or a request that isn't streamed) would be cut at 300 s whatever our setting says. Gemma running past a 20 s setting suggests the GM path doesn't apply the configured text-generation timeout at all. Next: trace every timeout on the GM request path, find why the earlier fix didn't cover this, and add a regression with a slow fake server so the configured timeout governs in both directions.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 6, 2026):

Fixed on staging by #7180: Game Mode now follows Request timeouts → Text generation as a wait between outputs (thinking counts as output), instead of a fixed 300 s; fixed total caps stay fixed. Ships to main with the next promotion.

<!-- gh-comment-id:6025776481 --> @SpicyMarinara commented on GitHub (Oct 6, 2026): Fixed on `staging` by #7180: Game Mode now follows **Request timeouts → Text generation** as a wait between outputs (thinking counts as output), instead of a fixed 300 s; fixed total caps stay fixed. Ships to `main` with the next promotion.
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#4007
No description provided.