mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3508] [MERGED] fix: remove settings, fields, and switches that silently do nothing #5971
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#5971
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/3508
Author: @kolacheee
Created: 7/12/2026
Status: ✅ Merged
Merged: 7/12/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/3487-silent-noops📝 Commits (3)
68e0afefix: remove settings, fields, and switches that silently do nothing (#3487)cd19c5ffix: drop orphaned ElementPresetName type and stale soundboard doc wordinga34fca8Merge remote-tracking branch 'origin/staging' into integrate-pr-3508📊 Changes
22 files changed (+46 additions, -685 deletions)
View changed files
📝
docs/conversation/calls.md(+2 -2)📝
packages/client/src/components/chat/ConversationCallSurface.tsx(+18 -47)📝
packages/client/src/components/game/GameNarration.tsx(+5 -9)📝
packages/client/src/components/panels/SettingsPanel.tsx(+0 -1)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+1 -3)📝
packages/client/src/components/presets/PresetEditor.tsx(+0 -12)📝
packages/client/src/features/tracker-panel/components/sections/WorldStatePanel.tsx(+1 -1)📝
packages/client/src/features/tracker-panel/lib/world-state-display.ts(+1 -10)📝
packages/client/src/hooks/use-game.ts(+0 -1)📝
packages/client/src/lib/tts-dialogue.ts(+7 -16)📝
packages/server/src/routes/bot-browser-chartavern.routes.ts(+1 -1)📝
packages/server/src/routes/bot-browser-datacat.routes.ts(+1 -1)📝
packages/server/src/routes/bot-browser-janny.routes.ts(+1 -1)📝
packages/server/src/routes/bot-browser-pygmalion.routes.ts(+1 -1)📝
packages/server/src/routes/bot-browser-wyvern.routes.ts(+1 -1)📝
packages/server/src/routes/bot-browser.routes.ts(+1 -1)📝
packages/server/src/routes/game.routes.ts(+2 -252)📝
packages/server/src/routes/updates.routes.ts(+0 -1)📝
packages/server/src/services/game/element-reactions.service.ts(+2 -315)📝
packages/server/src/utils/security.ts(+1 -1)...and 2 more files
📄 Description
Linked issue
Closes #3487 (together with already-open PR #3499, which covers the env-watcher
SPRITE_ANIMATED_FFMPEG_TIMEOUT_MSitem — the only catalogue entry not in this PR).Why this change
Controls that silently do nothing break user trust and mislead agents into building on inert toggles. This PR removes the remaining nine no-op surfaces from the #3487 catalogue. Every item was re-verified against current staging (the catalogue was verified 129 commits ago) and traced through git history before removal — each one is a deliberately-dismantled or born-dead surface, not a dropped wire-up, and the reasoning per item is in the commit message.
What changed
/apply: thecurrentBuildbody field was never read by the handler (the build label is exactlycurrentVersion+currentCommit, both already validated); removed from the body type and the client sender. Old clients still sending it remain compatible (no runtime schema rejects unknown keys).ttsConfigMatchesSpeakerreturnedtrueunconditionally since its first commit, so thedialogueScope/dialogueCharacterNameconfig fields gated nothing in any shipped version; removed the stub, its four call-site gates, and the schema fields. Stored configs carrying the stale keys parse fine (zod strips unknown keys). Game voice-line cache keys are preserved byte-for-byte via fixed placeholders inbuildVoiceConfigSignature, so no user pays TTS regeneration cost.getWorldAmbienceStyleignored its state argument since454cfcfb5deliberately replaced dynamic ambience with the user-controlled tracker-panel background theming; the signature now says so. Two keyword branches that returned their own fallback value collapsed (the cherry-blossom/aurora pair differs from its fallback and is untouched). This also covers the two world-state-display entries from #3488's no-op-branch list.genshin/hsrpresets were unreachable — nothing ever writesgameSetupConfig.elementPreset(the setup schema strips it), and the two/game/elementsdiscovery endpoints had zero callers. Removed presets, endpoints, and the orphaned sharedElementPresetNametype. Maintainer note: this was flagged as a plausibly-staged feature (the client renderer has display support for these element ids, which is kept — the GM can emit arbitrary element strings); removal over wire-up was an explicit ruling by @kolacheee. The live default-preset combat threading is deliberately untouched to avoid modifying live damage-resolution code.parametersround-trip is a leftover from the Parameters tab removed in v1.4.0. The server PATCH is field-conditional and merging, so omitting the field preserves imported ST/Marinara parameters exactly — and removal closes a real stale-snapshot clobber vector between two concurrently-open editors. The server-sideparametersfield is live generation data and is untouched./create:characterConnectionIdwas accepted, destructured, and discarded (the write hardcoded null) — the character-connection tier was deliberately dismantled in v1.5.5. Removed the schema field, destructure, null metadata write, and client type. Third-party senders get silent zod stripping, identical net effect to today.resolveValidatedImage: thecontentTypeHeaderparam was never read (a2f3bef600refactor remnant); all six bot-browser callers passed it under the impression it validates. Magic-byte sniffing is the authoritative check and the signature now admits it. AVIF behavior unchanged (these endpoints never accepted AVIF, before or after the helper existed).soundboardEnabled = true(upstream #3310 committed to always-on and removed one guard itself — this finishes that cleanup), the write-onlyParticipant.canSpeakfield, and the command-message formatting switch thatvisibleCallMessagesfilters out before the only render site. Live command execution (the turn handler) is a separate, untouched path. Covers the #3488 command-switch entry.generateSceneWrapAssetsInline = falsewas born false in0b7e03c68— the same commit that built the richer deferred/game/generate-assetsreplacement — and the route's own comment documents why inline generation is architecturally wrong here (client scene-analysis timeout). The unreachable branches had been hand-mirrored through 6+ refactors to keep compiling. Also deletes the orphanedapplyGeneratedIllustrationhelper, and stops per-character sprite-file disk reads on every scene-wrap request that only fed never-read maps (pure perf win).Two adversarial-review follow-ups included: the orphaned
ElementPresetNameshared type, and twodocs/conversation/calls.mdlines that described a soundboard enable condition that doesn't exist.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Validation performed: every item re-verified against current staging by a dedicated read-only verification pass (repo-wide consumer searches including dynamic dispatch, plus git-history intent tracing), exact-match scripted edits with assertions,
pnpm checkafter each batch, and a 6-lens adversarial review of the final diff (regression / orphan / scope lenses per branch) whose findings were fixed in the second commit.Manual checks still worth doing in a browser:
/game/generate-assetsflow, and combat rounds still apply element reactions (default preset).Docs and release impact
(Two in-app guide lines in
docs/conversation/calls.mdwere corrected as part of the change itself; no README/CHANGELOG impact.)UI evidence (if applicable)
No visual changes — all removals are of surfaces that never rendered or never had any effect. The soundboard button renders identically (it was gated by a hardcoded
true).Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.