fix(tts): skip TTS synthesis for compaction notices
Compaction start/completion notices carry isCompactionNotice: true on the ReplyPayload. Guard maybeApplyTtsToPayload() with an early return so these informational UI signals are never synthesised as speech, regardless of TTS mode or auto-mode configuration. Addresses review feedback from jalehman on PR #38805.
This commit is contained in:
parent
d2ea0e3dc8
commit
e5e73e3779
@ -825,6 +825,10 @@ export async function maybeApplyTtsToPayload(params: {
|
||||
inboundAudio?: boolean;
|
||||
ttsAuto?: string;
|
||||
}): Promise<ReplyPayload> {
|
||||
// Compaction notices are informational UI signals — never synthesise them as speech.
|
||||
if (params.payload.isCompactionNotice) {
|
||||
return params.payload;
|
||||
}
|
||||
const config = resolveTtsConfig(params.cfg);
|
||||
const prefsPath = resolveTtsPrefsPath(config);
|
||||
const autoMode = resolveTtsAutoMode({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user