[GH-ISSUE #6970] [Issue]: Local Prof Mari call terminates if first token takes longer than two minutes #3901

Closed
opened 2026-10-21 06:08:34 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Local Prof Mari terminates the call when no first token is received within two minutes. The timeout does not appear to be documented in the .env documentation, and its configurability is unclear.

Expected behavior

The first-token timeout should be configurable and documented, or the call should not be terminated unexpectedly when the initial response is delayed.

Actual behavior

ME terminates the call if the first token is not received within two minutes.

Steps to reproduce

  1. Run a local Prof Mari call.
  2. Delay the first token response for more than two minutes.
  3. Observe that ME terminates the call.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided in the Discord context.

Additional context

Giom identified the two-minute first-token timeout after testing terminated calls and did not find it documented in the .env documentation. They asked whether the timeout can be changed.

Discord message: Discord message from Giom
Discord message link: https://discord.com/channels/1417099416812392641/1495493775617687775/1555515586954530837
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord message transcript (1 message)
[2026-10-02T09:43:36.012Z] Giom: Hello everyone 😁 
After a bit of digging and lots of testing, it seems that I found the cause of terminated issues with local Prof Mari
ME kills the call if the first token wasn't received within 2 minutes
I didn't find anything about that in the .env documentation, is there a way to change that timeout ?
[Discord message: https://discord.com/channels/1417099416812392641/1495493775617687775/1555515586954530837]

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 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6970 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Local Prof Mari terminates the call when no first token is received within two minutes. The timeout does not appear to be documented in the .env documentation, and its configurability is unclear. ## Expected behavior The first-token timeout should be configurable and documented, or the call should not be terminated unexpectedly when the initial response is delayed. ## Actual behavior ME terminates the call if the first token is not received within two minutes. ## Steps to reproduce 1. Run a local Prof Mari call. 2. Delay the first token response for more than two minutes. 3. Observe that ME terminates the call. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided in the Discord context. ## Additional context Giom identified the two-minute first-token timeout after testing terminated calls and did not find it documented in the .env documentation. They asked whether the timeout can be changed. Discord message: Discord message from Giom Discord message link: https://discord.com/channels/1417099416812392641/1495493775617687775/1555515586954530837 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord message transcript (1 message)</summary> ```text [2026-10-02T09:43:36.012Z] Giom: Hello everyone 😁 After a bit of digging and lots of testing, it seems that I found the cause of terminated issues with local Prof Mari ME kills the call if the first token wasn't received within 2 minutes I didn't find anything about that in the .env documentation, is there a way to change that timeout ? [Discord message: https://discord.com/channels/1417099416812392641/1495493775617687775/1555515586954530837] ``` </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:08:35 +07:00
Author
Owner

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

Fixed in staging by #6971. Professor Mari and the other background calls no longer stop after two minutes without a first token. They now wait as long as the Text generation request timeout allows: Settings → Request timeouts → Text generation, or CHAT_GENERATION_TIMEOUT_MS in .env. It's 5 minutes by default, so a very slow local model may need it set higher. It's documented in docs/CONFIGURATION.md.

This stays open until the fix reaches main.

<!-- gh-comment-id:5951021353 --> @SpicyMarinara commented on GitHub (Oct 2, 2026): Fixed in staging by #6971. Professor Mari and the other background calls no longer stop after two minutes without a first token. They now wait as long as the **Text generation** request timeout allows: Settings → Request timeouts → Text generation, or `CHAT_GENERATION_TIMEOUT_MS` in `.env`. It's 5 minutes by default, so a very slow local model may need it set higher. It's documented in `docs/CONFIGURATION.md`. This stays open until the fix reaches main.
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#3901
No description provided.