mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8941] [MERGED] fix(connections): list a local voice server On this device #8897
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#8897
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/8941
Author: @SpicyMarinara
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/local-tts-connections📝 Commits (1)
cfeacfafix(connections): list a local voice server On this device (#8921)📊 Changes
9 files changed (+154 additions, -10 deletions)
View changed files
📝
docs/media/tts-setup.md(+1 -1)📝
packages/client/src/components/connections/ConnectionDefaults.tsx(+2 -2)📝
packages/client/src/components/connections/DeviceDetail.tsx(+5 -3)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+5 -1)📝
packages/client/src/hooks/use-tts.ts(+2 -1)📝
packages/server/src/routes/tts.routes.ts(+13 -2)📝
packages/shared/src/types/tts.ts(+6 -0)📝
scripts/regressions/connection-voice-row.regression.ts(+23 -0)➕
scripts/regressions/tts-local-voice-server.regression.ts(+97 -0)📄 Description
Linked issue
Closes #8921
Why this change
Local text-to-speech disappeared from Connections after the new Connections UI, so players couldn't find where to change or turn it off. #8922 (Refs #8921) fixed the reporter's case: the Voice row now opens the PocketTTS page under On this device.
One case was still broken. A voice server running on the player's own computer or network, but set up with a source other than PocketTTS, was treated as a cloud voice. That covers Kokoro or Speaches set up as OpenAI-compatible at
localhost:8880, a192.168.xaddress orhost.docker.internal. It had no row under On this device, and its Voice row still opened the empty "No models yet" picker. The cause: since2bdce9badb(#8678), both places decide "local" by the source name alone (tts.source === "pockettts").What changed
packages/server/src/routes/tts.routes.ts):ttsRunsLocally(cfg)is true for PocketTTS or for any configured base URL the server's existingisLocalInferenceBaseUrlcounts as local. That is the same rule the model catalog uses for chat connections: loopback, private ranges,.local,.internal,host.docker.internal, Tailscale100.x,fd00::/fe80::and single-label hosts.GET /api/tts/configreturns it aslocal, never saved back, from the effective settings, including when an Audio connection is chosen. The shared typeTTSConfigResponsedescribes it.DeviceDetail.tsxandConnectionDefaults.tsxusetts.local. A local server gets its On this device row, labelled by its host (for example "localhost:8880") rather than "OpenAI", and the Voice row opens that page.ConnectionsPanel.tsxkeeps the TTS page open while text to speech is on. The card saves the Base URL as you type, and a half-typed address used to close the page.docs/media/tts-setup.md: the card is also under On this device for PocketTTS or another voice server on your computer or private network.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent (not a substitute for the boxes above):
pnpm check: exit 0.tts-local-voice-server.regression.ts:.local,.internal, Docker, Tailscale, IPv6 and single-label hosts versus cloud and malformed URLs;local, and saving what was read back doesn't store it.connection-voice-row.regression.ts: the page stays open while typing, and the host label.--filter tts(14/14) and--filter connection(36/36): pass.Still to verify by hand:
http://localhost:8880/v1the On this device row reads "Text to speech · localhost:8880" and opens its page.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.