[PR #3458] [MERGED] fix: warn on restart-required SPRITE_GENERATION_TIMEOUT_MS change #5946

Closed
opened 2026-10-23 04:05:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 9a22f1a fix: 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

  • Changing SPRITE_GENERATION_TIMEOUT_MS in a live .env looks like it applies — the watcher logs a normal [env-watcher] Updated: line — but silently does nothing: the value is bound once at module load in packages/server/src/routes/sprites.routes.ts, so sprite generation keeps the boot-time timeout until the server restarts.
  • Every sibling setting (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, and docs/CONFIGURATION.md had to document the gap as an explicit exception ("It still needs a restart, but the log does not warn you").

What changed

  • Added SPRITE_GENERATION_TIMEOUT_MS to RESTART_REQUIRED_KEYS in packages/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_MS warning.
  • Dropped the now-obsolete exception sentence from 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 check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

To verify manually: start the server, edit SPRITE_GENERATION_TIMEOUT_MS in the runtime .env while it runs, and confirm the log shows the restart-required warning alongside the Updated: line (before this change, only the Updated: 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

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

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.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3458 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/10/2026 **Status:** ✅ Merged **Merged:** 7/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3457-env-watcher-sprite-timeout-key` --- ### 📝 Commits (1) - [`9a22f1a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a22f1af3493e4590da3c8bebf880cd12d723ee5) fix: warn on restart-required SPRITE_GENERATION_TIMEOUT_MS change ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `packages/server/src/config/env-watcher.ts` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #3457 ## Why this change - Changing `SPRITE_GENERATION_TIMEOUT_MS` in a live `.env` looks like it applies — the watcher logs a normal `[env-watcher] Updated:` line — but silently does nothing: the value is bound once at module load in `packages/server/src/routes/sprites.routes.ts`, so sprite generation keeps the boot-time timeout until the server restarts. - Every sibling setting (`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, and `docs/CONFIGURATION.md` had to document the gap as an explicit exception ("It still needs a restart, but the log does not warn you"). ## What changed - Added `SPRITE_GENERATION_TIMEOUT_MS` to `RESTART_REQUIRED_KEYS` in `packages/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_MS` warning. - Dropped the now-obsolete exception sentence from `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 check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes To verify manually: start the server, edit `SPRITE_GENERATION_TIMEOUT_MS` in the runtime `.env` while it runs, and confirm the log shows the restart-required warning alongside the `Updated:` line (before this change, only the `Updated:` 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 - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) `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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05:28 +07:00
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#5946
No description provided.