mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4052] [Issue]: Hardcoded 45s GAME_DYNAMIC_IMAGE_PROMPT_TIMEOUT_MS causes GameGenerationTimeoutError on slower models #2182
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2182
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Aculeasis on GitHub (Jul 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4052
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The dynamic image prompt generation watchdog timeout is hardcoded to 45 seconds (GAME_DYNAMIC_IMAGE_PROMPT_TIMEOUT_MS = 45 * 1000 in packages/server/src/routes/game.routes.ts). During game portrait asset generation, slower LLM models or high-latency provider endpoints time out after 45 seconds and crash with a GameGenerationTimeoutError.
Expected behavior
The dynamic image prompt timeout should be configurable via environment variable (e.g. GAME_DYNAMIC_IMAGE_PROMPT_TIMEOUT_MS or DYNAMIC_IMAGE_PROMPT_TIMEOUT_MS in .env), falling back to a default of 45000 ms, similar to how timeouts are handled in PR #4025 and packages/server/src/config/runtime-config.ts, allowing slower models to complete prompt generation without erroring out.
Actual behavior
The server crashes dynamic portrait generation with
GameGenerationTimeoutError: Game dynamic portrait image prompt timed out after 45 secondsdue to the hardcoded 45-second limit in game.routes.ts, with no way to increase it in configuration.Steps to reproduce
Environment
Logs, screenshots, or video
Additional context
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 24, 2026):
🔧 Ownership: @SpicyMarinara via Codex. Implementation is underway in draft PR #4060.
@SpicyMarinara commented on GitHub (Jul 24, 2026):
🔧 Ownership note: @SpicyMarinara is handling this in #4060 as part of the current open-issue sweep.