mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7020] [MERGED] fix(tts): save a Character Editor voice without undoing newer settings #7433
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#7433
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/7020
Author: @SpicyMarinara
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/tts-voice-assignment-save📝 Commits (4)
7a655a1fix(tts): save a Character Editor voice without undoing newer settingsa880ea4fix(tts): keep unreadable TTS settings and cover failed voice saves4329bb8Merge remote-tracking branch 'origin/staging' into fix/tts-voice-assignment-save4ffd8abfix(tts): switch to per-character voices without undoing newer settings📊 Changes
9 files changed (+445 additions, -65 deletions)
View changed files
📝
CHANGELOG.md(+1 -1)📝
e2e/ux-feedback-sweep.e2e.ts(+70 -6)📝
packages/client/src/components/characters/CharacterVoicePicker.tsx(+20 -24)📝
packages/client/src/hooks/use-tts.ts(+34 -7)📝
packages/client/src/lib/tts-dialogue.ts(+6 -17)📝
packages/server/src/routes/tts.routes.ts(+69 -8)📝
packages/shared/src/types/tts.ts(+32 -0)📝
scripts/regressions/tts-source-persistence.regression.ts(+1 -2)➕
scripts/regressions/tts-voice-assignment-route.regression.ts(+212 -0)📄 Description
Linked issue
Closes #7008
Follow-up to #6998 (found by CodeRabbit there).
Why this change
The Character Editor's new Voice section saved a pick by sending the whole Text to Speech configuration as the page last saw it. If another save landed meanwhile, the pick put the old values back. That other save could come from Connections → Text to Speech, another tab or another device, and could change the speed, the source or another character's voice. Its Use a voice per character button had the same problem. The Voice section hasn't shipped yet, so this fixes it before the release.
What changed
tts.routes.ts):PUT /api/tts/config/voice-assignmentchanges only one character's voice row.PUT /api/tts/config/voice-modechanges only the voice mode.PUT /configdoes.PUT /config, so no save can read old settings and overwrite a newer one.setCharacterVoiceAssignmentmoved topackages/shared, with input schemas for both routes. A voice name is capped at 200 characters, the mostPOST /speakaccepts.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent (CI runs neither the route regression nor these e2e tests):
pnpm check,pnpm localization:check,tts-source-persistenceand the newtts-voice-assignment-routeregression pass.The new regression covers:
PUT /configloses neither change;Reverting each piece of the fix makes it fail. It passed 9/9 runs in a row.
On desktop Chromium, two
ux-feedback-sweepe2e tests pass: "Character Voice …" (held saves, a failed save, then a new pick) and "Use a voice per character keeps Text to Speech settings saved elsewhere". Each fails on the old picker.Two reviews ran. All confirmed findings are fixed, and the rejected ones have code-based reasons.
Still to verify by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG updated; no user docs change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.