Add client service metadata sanitization and debug source check

This commit is contained in:
Xin Wang
2026-02-26 10:24:55 +08:00
parent f77f7c7531
commit 443f2d1541
2 changed files with 72 additions and 7 deletions

View File

@@ -2296,10 +2296,10 @@ export const DebugDrawer: React.FC<{
useEffect(() => {
if (!isOpen) return;
if (!wsRef.current || wsRef.current.readyState !== WebSocket.OPEN) return;
// If core TTS-related settings changed while drawer stays open,
// If core runtime settings changed while drawer stays open,
// reset the active WS session so the next launch uses new metadata.
closeWs();
}, [isOpen, assistant.id, assistant.voice, assistant.speed]);
}, [isOpen, assistant.id, assistant.voice, assistant.speed, assistant.asrModelId]);
useEffect(() => {
if (!textTtsEnabled) {