[GH-ISSUE #3487] [Issue]: Code sweep: settings, fields, and switches that silently do nothing #1884

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

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

Originally assigned to: @kolacheee on GitHub.

Summary

A batch of settings, request fields, function parameters, and switches that look functional but have no effect.

Why this is a problem: controls that silently do nothing break user trust ("I changed the setting and nothing happened, no error") and mislead agents into building on toggles that are inert, or into "cleaning up" values that actually matter elsewhere.
What it negatively affects: user configuration (changes silently ignored), debugging time, and the safety of automated refactors.

Expected behavior

Every exposed setting, accepted request field, and function parameter either does what its name says or does not exist.

Actual behavior

  • packages/server/src/config/env-watcher.ts:45 — RESTART_REQUIRED_KEYS omits SPRITE_ANIMATED_FFMPEG_TIMEOUT_MS (read once at boot, sprites.routes.ts:121). Editing it in a live .env silently no-ops with no [env-watcher] warning. Identical pattern to the sibling key already fixed in #3457 / 9a22f1af3.
  • packages/server/src/routes/updates.routes.ts:492 — /apply accepts currentBuild (and the client sends it) but the handler validates only currentVersion/currentCommit; the field does nothing.
  • packages/client/src/lib/tts-dialogue.ts:39 — ttsConfigMatchesSpeaker unconditionally returns true; the dialogueScope/dialogueCharacterName config it appears to honor has no effect (no UI ever sets scope to "character"). It gates 4 live call sites.
  • packages/client/src/features/tracker-panel/lib/world-state-display.ts:414 — getWorldAmbienceStyle(_state) ignores its argument and returns a static CSS variable (real implementation introduced in f9fccda75, gutted in 454cfcfb5). The call site still passes full world state, reinforcing the illusion.
  • packages/server/src/services/game/element-reactions.service.ts:447 — the genshin and hsr reaction presets are unreachable: nothing sets meta.gameSetupConfig.elementPreset, so only default ever applies.
  • packages/client/src/components/presets/PresetEditor.tsx:339 — the preset's own parameters field round-trips on save, but no tab or field ever edits it.
  • packages/server/src/routes/game.routes.ts:5928 — the schema accepts characterConnectionId, it is destructured at 5818, and then never reused (the write hardcodes null) while sibling fields are threaded correctly. Wire it up or remove the schema field.
  • packages/server/src/utils/security.ts:623 — resolveValidatedImage's contentTypeHeader parameter is never read (the body sniffs magic bytes only); all 6 callers pass a real header, implying it validates. The AVIF path is unreachable (needs expectedExt, never forwarded).
  • packages/client/src/components/chat/ConversationCallSurface.tsx:1245 — soundboardEnabled = true constant leaves 4 permanently one-sided guards; canSpeak (:110) is a write-only field.
  • packages/server/src/routes/game.routes.ts:9624 — generateSceneWrapAssetsInline = false kill-switch permanently disables ~170 lines across 3 branches (self-documented; keep or delete, but decide).

Steps to reproduce

Each entry lists the exact file/line; the fastest check is reading the reference and searching for consumers of the value in question.

Environment

  • Marinara Engine version: 2.2.0 (staging @ 45b650de9)
  • Install type: source
  • OS + version: N/A — verified by reading the code
  • Browser or app shell: N/A

Logs, screenshots, or video

N/A.

Additional context

Found by a repo-wide read-only sweep; each entry adversarially re-verified (consumers searched repo-wide, including dynamic dispatch) before filing. No fixes started. Part of a coordinated set of sweep catalogue issues filed together.

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 @kolacheee on GitHub (Jul 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3487 Originally assigned to: @kolacheee on GitHub. ## Summary A batch of settings, request fields, function parameters, and switches that look functional but have no effect. **Why this is a problem:** controls that silently do nothing break user trust ("I changed the setting and nothing happened, no error") and mislead agents into building on toggles that are inert, or into "cleaning up" values that actually matter elsewhere. **What it negatively affects:** user configuration (changes silently ignored), debugging time, and the safety of automated refactors. ## Expected behavior Every exposed setting, accepted request field, and function parameter either does what its name says or does not exist. ## Actual behavior - [ ] `packages/server/src/config/env-watcher.ts:45` — `RESTART_REQUIRED_KEYS` omits `SPRITE_ANIMATED_FFMPEG_TIMEOUT_MS` (read once at boot, `sprites.routes.ts:121`). Editing it in a live `.env` silently no-ops with no `[env-watcher]` warning. Identical pattern to the sibling key already fixed in #3457 / 9a22f1af3. - [ ] `packages/server/src/routes/updates.routes.ts:492` — `/apply` accepts `currentBuild` (and the client sends it) but the handler validates only `currentVersion`/`currentCommit`; the field does nothing. - [ ] `packages/client/src/lib/tts-dialogue.ts:39` — `ttsConfigMatchesSpeaker` unconditionally returns `true`; the `dialogueScope`/`dialogueCharacterName` config it appears to honor has no effect (no UI ever sets scope to "character"). It gates 4 live call sites. - [ ] `packages/client/src/features/tracker-panel/lib/world-state-display.ts:414` — `getWorldAmbienceStyle(_state)` ignores its argument and returns a static CSS variable (real implementation introduced in f9fccda75, gutted in 454cfcfb5). The call site still passes full world state, reinforcing the illusion. - [ ] `packages/server/src/services/game/element-reactions.service.ts:447` — the `genshin` and `hsr` reaction presets are unreachable: nothing sets `meta.gameSetupConfig.elementPreset`, so only `default` ever applies. - [ ] `packages/client/src/components/presets/PresetEditor.tsx:339` — the preset's own `parameters` field round-trips on save, but no tab or field ever edits it. - [ ] `packages/server/src/routes/game.routes.ts:5928` — the schema accepts `characterConnectionId`, it is destructured at 5818, and then never reused (the write hardcodes null) while sibling fields are threaded correctly. Wire it up or remove the schema field. - [ ] `packages/server/src/utils/security.ts:623` — `resolveValidatedImage`'s `contentTypeHeader` parameter is never read (the body sniffs magic bytes only); all 6 callers pass a real header, implying it validates. The AVIF path is unreachable (needs `expectedExt`, never forwarded). - [ ] `packages/client/src/components/chat/ConversationCallSurface.tsx:1245` — `soundboardEnabled = true` constant leaves 4 permanently one-sided guards; `canSpeak` (:110) is a write-only field. - [ ] `packages/server/src/routes/game.routes.ts:9624` — `generateSceneWrapAssetsInline = false` kill-switch permanently disables ~170 lines across 3 branches (self-documented; keep or delete, but decide). ## Steps to reproduce Each entry lists the exact file/line; the fastest check is reading the reference and searching for consumers of the value in question. ## Environment - Marinara Engine version: 2.2.0 (staging @ 45b650de9) - Install type: source - OS + version: N/A — verified by reading the code - Browser or app shell: N/A ## Logs, screenshots, or video N/A. ## Additional context Found by a repo-wide read-only sweep; each entry adversarially re-verified (consumers searched repo-wide, including dynamic dispatch) before filing. No fixes started. Part of a coordinated set of sweep catalogue issues filed together. ## 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

@kolacheee commented on GitHub (Jul 11, 2026):

Taking the remaining items (everything except the env-watcher key, which is already covered by open PR #3499). Each entry is being re-verified against current staging before any change — the catalogue was verified at 45b650de9 and staging has moved 129 commits since. Fix PR to follow once validated. — @kolacheee

<!-- gh-comment-id:4949070382 --> @kolacheee commented on GitHub (Jul 11, 2026): Taking the remaining items (everything except the env-watcher key, which is already covered by open PR #3499). Each entry is being re-verified against current staging before any change — the catalogue was verified at 45b650de9 and staging has moved 129 commits since. Fix PR to follow once validated. — @kolacheee
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#1884
No description provided.