[GH-ISSUE #786] [Feature]: Configure Game Mode image generation timeout #380

Closed
opened 2026-10-20 17:28:13 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Game Mode image generation can take longer than the current timeout allows. A Discord report says 120 seconds is too short for Game Mode, and there does not appear to be a current Game Mode setting to disable or adjust that timeout.

Professor Mari checked the Game Mode asset path and found that Game Mode calls the shared generateImage(...) flow for portraits, backgrounds, and illustrations, then logs and returns null if generation fails. The visible Game Mode image settings are size-related only, so the timeout likely lives in the shared image generation/provider request layer rather than Game Mode itself.

Proposed solution

Add a way to configure the image generation timeout for Game Mode assets.

Possible shape:

  • Let users increase the timeout for Game Mode image generation.
  • Optionally allow disabling the timeout where the provider/request layer can do so safely.
  • Keep the current timeout as the default so normal image requests do not unexpectedly hang.
  • If the timeout is shared across image generation, expose the setting in a way that makes the Game Mode impact clear.

If a true disabled timeout is not safe, a longer configurable timeout for Game Mode would still address the immediate problem.

Alternatives considered

  • Keep the current 120-second timeout. This avoids hung requests, but Game Mode assets can fail even when the provider may still be working.
  • Increase the global image timeout for everyone. This is simpler, but it may affect non-Game-Mode image flows in ways users do not expect.
  • Add only provider-specific guidance in docs. This helps explain the behavior, but does not give users a way to fix the timeout when their Game Mode image workflow needs more time.

Additional context

Source/context: Discord feature request.

Reporter/source: Sona asked whether there is any way to disable image timeout because "120 seconds is too short for gamemode." Chai asked Professor Mari whether there is currently a way to disable image timeout in Game Mode, and Professor Mari reported that no Game Mode-specific toggle was visible.

Source link: https://discord.com/channels/1417099416812392641/1503876057831309393

Suggested triage: scope-risk, because the request is focused and aligned with Game Mode/image generation, but the likely implementation touches the shared image generation timeout/provider request layer and needs a safety decision around disabling versus extending timeouts.

Suggested triage comment:

Triage note: labeling this as scope-risk because the Game Mode ask is clear, but disabling or extending image timeouts likely crosses the shared image generation/provider request layer and needs a safety decision around hung requests.

Least risky next step is to identify the actual timeout source, then add a bounded configurable Game Mode timeout before considering a fully disabled timeout option.

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 @cha1latte on GitHub (May 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/786 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Game Mode image generation can take longer than the current timeout allows. A Discord report says 120 seconds is too short for Game Mode, and there does not appear to be a current Game Mode setting to disable or adjust that timeout. Professor Mari checked the Game Mode asset path and found that Game Mode calls the shared `generateImage(...)` flow for portraits, backgrounds, and illustrations, then logs and returns `null` if generation fails. The visible Game Mode image settings are size-related only, so the timeout likely lives in the shared image generation/provider request layer rather than Game Mode itself. ## Proposed solution Add a way to configure the image generation timeout for Game Mode assets. Possible shape: - Let users increase the timeout for Game Mode image generation. - Optionally allow disabling the timeout where the provider/request layer can do so safely. - Keep the current timeout as the default so normal image requests do not unexpectedly hang. - If the timeout is shared across image generation, expose the setting in a way that makes the Game Mode impact clear. If a true disabled timeout is not safe, a longer configurable timeout for Game Mode would still address the immediate problem. ## Alternatives considered - Keep the current 120-second timeout. This avoids hung requests, but Game Mode assets can fail even when the provider may still be working. - Increase the global image timeout for everyone. This is simpler, but it may affect non-Game-Mode image flows in ways users do not expect. - Add only provider-specific guidance in docs. This helps explain the behavior, but does not give users a way to fix the timeout when their Game Mode image workflow needs more time. ## Additional context Source/context: Discord feature request. Reporter/source: Sona asked whether there is any way to disable image timeout because "120 seconds is too short for gamemode." Chai asked Professor Mari whether there is currently a way to disable image timeout in Game Mode, and Professor Mari reported that no Game Mode-specific toggle was visible. Source link: https://discord.com/channels/1417099416812392641/1503876057831309393 Suggested triage: `scope-risk`, because the request is focused and aligned with Game Mode/image generation, but the likely implementation touches the shared image generation timeout/provider request layer and needs a safety decision around disabling versus extending timeouts. Suggested triage comment: Triage note: labeling this as `scope-risk` because the Game Mode ask is clear, but disabling or extending image timeouts likely crosses the shared image generation/provider request layer and needs a safety decision around hung requests. Least risky next step is to identify the actual timeout source, then add a bounded configurable Game Mode timeout before considering a fully disabled timeout option. ## 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.
Author
Owner

@cha1latte commented on GitHub (May 13, 2026):

Triage note: labeling this as scope-risk because the Game Mode ask is clear, but disabling or extending image timeouts likely crosses the shared image generation/provider request layer and needs a safety decision around hung requests.

Least risky next step is to identify the actual timeout source, then add a bounded configurable Game Mode timeout before considering a fully disabled timeout option.

<!-- gh-comment-id:4443887672 --> @cha1latte commented on GitHub (May 13, 2026): Triage note: labeling this as `scope-risk` because the Game Mode ask is clear, but disabling or extending image timeouts likely crosses the shared image generation/provider request layer and needs a safety decision around hung requests. Least risky next step is to identify the actual timeout source, then add a bounded configurable Game Mode timeout before considering a fully disabled timeout option.
Author
Owner

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

I will simply increase the timeout to 5 minutes.

<!-- gh-comment-id:4470041924 --> @SpicyMarinara commented on GitHub (May 17, 2026): I will simply increase the timeout to 5 minutes.
Author
Owner

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

Fixed on staging in c82547f7. ComfyUI's queued-workflow polling timeout now defaults to 300 seconds, matching the shared 5-minute image request timeout used by Game Mode image assets. Also documented IMAGE_GEN_TIMEOUT_MS and COMFYUI_GEN_TIMEOUT in .env/docs.

<!-- gh-comment-id:4470292053 --> @SpicyMarinara commented on GitHub (May 17, 2026): Fixed on staging in c82547f7. ComfyUI's queued-workflow polling timeout now defaults to 300 seconds, matching the shared 5-minute image request timeout used by Game Mode image assets. Also documented IMAGE_GEN_TIMEOUT_MS and COMFYUI_GEN_TIMEOUT in .env/docs.
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#380
No description provided.