[PR #3468] [MERGED] Preserve settings when switching TTS sources #5952

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3468
Author: @SpicyMarinara
Created: 7/11/2026
Status: ✅ Merged
Merged: 7/11/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/tts-source-persistence-3467


📝 Commits (2)

  • d64a4ef Add TTS source persistence regression
  • 20a5161 Preserve settings across TTS sources

📊 Changes

7 files changed (+253 additions, -45 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/media/tts-setup.md (+1 -3)
📝 package.json (+2 -1)
📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+52 -27)
📝 packages/server/src/routes/tts.routes.ts (+71 -13)
📝 packages/shared/src/types/tts.ts (+55 -1)
➕ scripts/regressions/tts-source-persistence.regression.ts (+71 -0)

📄 Description

Linked issue

Closes #3467

Why this change

Changing the Text to Speech source currently replaces the previous source's API key and provider parameters with another provider's defaults. Switching back cannot recover that configuration.

What changed

  • Persist encrypted credentials and provider parameters in an independent profile for each TTS source.
  • Restore the selected source profile immediately, while giving never-configured sources clean defaults.
  • Migrate legacy single-source settings into the active profile without exposing or re-encrypting masked credentials.
  • Add credential-boundary regression coverage and update the TTS guide and changelog.

Validation

Automated evidence:

  • pnpm regression:tts passes, covering legacy migration, two independent encrypted keys, switching both directions, response masking, and a blank-profile negative control.

  • pnpm check passes locally.

  • Hosted pnpm-validate and container-build-test checks pass.

  • 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

The in-app browser was unavailable in this workspace session, so a live click-through was not claimed.

  • Manually verify an OpenAI-compatible key/model/voice survives switching to ElevenLabs and back.
  • Manually verify a separately configured ElevenLabs profile survives switching away and back.

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)

UI evidence (if applicable)

No visual layout change; this fixes persisted source-switch behavior.


🔄 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/3468 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/11/2026 **Status:** ✅ Merged **Merged:** 7/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/tts-source-persistence-3467` --- ### 📝 Commits (2) - [`d64a4ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d64a4effd39d2a6f5f36661076528bcd820651af) Add TTS source persistence regression - [`20a5161`](https://github.com/Pasta-Devs/Marinara-Engine/commit/20a516182c473cb57da9418096c7ffe9a7c7ffae) Preserve settings across TTS sources ### 📊 Changes **7 files changed** (+253 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/media/tts-setup.md` (+1 -3) 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+52 -27) 📝 `packages/server/src/routes/tts.routes.ts` (+71 -13) 📝 `packages/shared/src/types/tts.ts` (+55 -1) ➕ `scripts/regressions/tts-source-persistence.regression.ts` (+71 -0) </details> ### 📄 Description ## Linked issue Closes #3467 ## Why this change Changing the Text to Speech source currently replaces the previous source's API key and provider parameters with another provider's defaults. Switching back cannot recover that configuration. ## What changed - Persist encrypted credentials and provider parameters in an independent profile for each TTS source. - Restore the selected source profile immediately, while giving never-configured sources clean defaults. - Migrate legacy single-source settings into the active profile without exposing or re-encrypting masked credentials. - Add credential-boundary regression coverage and update the TTS guide and changelog. ## Validation Automated evidence: - `pnpm regression:tts` passes, covering legacy migration, two independent encrypted keys, switching both directions, response masking, and a blank-profile negative control. - `pnpm check` passes locally. - Hosted `pnpm-validate` and `container-build-test` checks pass. - [ ] `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 The in-app browser was unavailable in this workspace session, so a live click-through was not claimed. - Manually verify an OpenAI-compatible key/model/voice survives switching to ElevenLabs and back. - Manually verify a separately configured ElevenLabs profile survives switching away and back. ## 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) ## UI evidence (if applicable) No visual layout change; this fixes persisted source-switch behavior. --- <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:32 +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#5952
No description provided.