mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3458] [MERGED] fix: warn on restart-required SPRITE_GENERATION_TIMEOUT_MS change #5946
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#5946
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3458
Author: @kolacheee
Created: 7/10/2026
Status: ✅ Merged
Merged: 7/10/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/3457-env-watcher-sprite-timeout-key📝 Commits (1)
9a22f1afix: warn on restart-required SPRITE_GENERATION_TIMEOUT_MS change📊 Changes
2 files changed (+2 additions, -1 deletions)
View changed files
📝
docs/CONFIGURATION.md(+1 -1)📝
packages/server/src/config/env-watcher.ts(+1 -0)📄 Description
Linked issue
Closes #3457
Why this change
SPRITE_GENERATION_TIMEOUT_MSin a live.envlooks like it applies — the watcher logs a normal[env-watcher] Updated:line — but silently does nothing: the value is bound once at module load inpackages/server/src/routes/sprites.routes.ts, so sprite generation keeps the boot-time timeout until the server restarts.IMAGE_GEN_TIMEOUT_MS,VIDEO_GEN_TIMEOUT_MS,VIDEO_GEN_MAX_RESPONSE_BYTES,COMFYUI_GEN_TIMEOUT, the four poll intervals) already triggers the restart-required warning. This key was simply missing from the list, anddocs/CONFIGURATION.mdhad to document the gap as an explicit exception ("It still needs a restart, but the log does not warn you").What changed
SPRITE_GENERATION_TIMEOUT_MStoRESTART_REQUIRED_KEYSinpackages/server/src/config/env-watcher.ts, placed with the other generation-timeout keys. Editing the variable now logs the standard[env-watcher] These variables changed but require a server restart to take effect: SPRITE_GENERATION_TIMEOUT_MSwarning.docs/CONFIGURATION.md§ Restart or hot reload. The key stays listed in the restart-required group on line 55; only the "the log does not warn you" carve-out is gone, because the log warns now.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
To verify manually: start the server, edit
SPRITE_GENERATION_TIMEOUT_MSin the runtime.envwhile it runs, and confirm the log shows the restart-required warning alongside theUpdated:line (before this change, only theUpdated:line appears).No UI surface is touched, so the light/dark/mobile/edge-case boxes have nothing to exercise beyond the log line above.
Docs and release impact
docs/CONFIGURATION.md(§ Restart or hot reload) is updated in this PR. No version or release-metadata changes.UI evidence (if applicable)
None — server log behavior and documentation only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.