[GH-ISSUE #3730] [Feature]: Add chat timeout and Engine auto-update env controls #2013

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Two server-level behaviors are currently too rigid for self-hosted users:

  1. Main chat generations can be cancelled before a slow local model responds. Some local models may need up to 10 minutes to produce the first token or complete a response, while the current fixed timeout can terminate the request earlier.
  2. Git-based Marinara Engine installations automatically check for and apply launcher updates on startup. Users can skip one launch with the existing command-line option, but there is no persistent .env preference for users who want to remain on their installed Engine version.

Proposed solution

Add two documented, startup-level .env controls.

Configurable main chat generation timeout

Add a setting such as:

CHAT_GENERATION_TIMEOUT_MS=600000

Requirements:

  • Preserve the current timeout as the default when the variable is unset.
  • Apply the configured value to ordinary main chat generation requests across Conversation, Roleplay, and Game.
  • Cover the actual cancellation boundary for slow local models, including time to first token/headers and non-streaming responses where applicable.
  • Do not silently change the existing timeout behavior for image/video generation, embeddings, downloadable Agents, custom tools, or background jobs.
  • Validate invalid, zero, negative, or unreasonable values and fall back safely with a useful warning.
  • State clearly whether changing the value requires a server restart.

Persistent opt-out from automatic Engine updates

Add a setting such as:

AUTO_UPDATE_ENABLED=false

Requirements:

  • When disabled, the Windows, macOS/Linux, and Termux launchers start the currently installed Marinara Engine without automatically fetching or applying an Engine update.
  • Keep the existing one-launch --skip-update behavior.
  • Keep manual Settings → Advanced → Check for Updates and deliberate manual update commands available.
  • Scope this preference to Marinara Engine updates; it should not ambiguously disable unrelated package, model, or Agent update behavior.
  • Show a concise launcher message when automatic Engine updates are disabled by configuration.
  • Preserve the current automatic-update behavior by default when the variable is unset.

Documentation

Document both variables in:

  • .env.example
  • docs/CONFIGURATION.md
  • docs/UPGRADING.md
  • Any affected platform installation guides or launcher help text

The documentation should include defaults, units, valid ranges, restart requirements, platform coverage, and the distinction between automatic Engine updates and manual update controls.

Alternatives considered

  • Ask local-model users to modify source constants. This is not durable across updates and is inaccessible to ordinary self-hosters.
  • Require --skip-update on every launch. This works for a single start but does not provide a persistent user preference.
  • Disable all update checking. Users who opt out of automatic application should still be able to check and update manually when they choose.

Additional context

A 10-minute (600000 ms) chat-generation timeout is a practical example for slower local inference, but the final default and safe bounds can preserve current behavior and follow existing configuration conventions.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3730 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Two server-level behaviors are currently too rigid for self-hosted users: 1. Main chat generations can be cancelled before a slow local model responds. Some local models may need up to 10 minutes to produce the first token or complete a response, while the current fixed timeout can terminate the request earlier. 2. Git-based Marinara Engine installations automatically check for and apply launcher updates on startup. Users can skip one launch with the existing command-line option, but there is no persistent `.env` preference for users who want to remain on their installed Engine version. ## Proposed solution Add two documented, startup-level `.env` controls. ### Configurable main chat generation timeout Add a setting such as: ```env CHAT_GENERATION_TIMEOUT_MS=600000 ``` Requirements: - Preserve the current timeout as the default when the variable is unset. - Apply the configured value to ordinary main chat generation requests across Conversation, Roleplay, and Game. - Cover the actual cancellation boundary for slow local models, including time to first token/headers and non-streaming responses where applicable. - Do not silently change the existing timeout behavior for image/video generation, embeddings, downloadable Agents, custom tools, or background jobs. - Validate invalid, zero, negative, or unreasonable values and fall back safely with a useful warning. - State clearly whether changing the value requires a server restart. ### Persistent opt-out from automatic Engine updates Add a setting such as: ```env AUTO_UPDATE_ENABLED=false ``` Requirements: - When disabled, the Windows, macOS/Linux, and Termux launchers start the currently installed Marinara Engine without automatically fetching or applying an Engine update. - Keep the existing one-launch `--skip-update` behavior. - Keep manual **Settings → Advanced → Check for Updates** and deliberate manual update commands available. - Scope this preference to Marinara Engine updates; it should not ambiguously disable unrelated package, model, or Agent update behavior. - Show a concise launcher message when automatic Engine updates are disabled by configuration. - Preserve the current automatic-update behavior by default when the variable is unset. ### Documentation Document both variables in: - `.env.example` - `docs/CONFIGURATION.md` - `docs/UPGRADING.md` - Any affected platform installation guides or launcher help text The documentation should include defaults, units, valid ranges, restart requirements, platform coverage, and the distinction between automatic Engine updates and manual update controls. ## Alternatives considered - Ask local-model users to modify source constants. This is not durable across updates and is inaccessible to ordinary self-hosters. - Require `--skip-update` on every launch. This works for a single start but does not provide a persistent user preference. - Disable all update checking. Users who opt out of automatic application should still be able to check and update manually when they choose. ## Additional context A 10-minute (`600000` ms) chat-generation timeout is a practical example for slower local inference, but the final default and safe bounds can preserve current behavior and follow existing configuration conventions. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:36 +07:00
Author
Owner

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

Resolved by #3732, now merged into staging.

<!-- gh-comment-id:5000939555 --> @SpicyMarinara commented on GitHub (Jul 17, 2026): Resolved by #3732, now 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#2013
No description provided.