Skip to content

Commit de7cef2

Browse files
authored
FIX: Initialize tts speed state in ClineProvider (#1799)
1 parent 0e036fb commit de7cef2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
369369
setTtsEnabled(ttsEnabled ?? false)
370370
})
371371

372+
// Initialize tts speed state
373+
this.getState().then(({ ttsSpeed }) => {
374+
setTtsSpeed(ttsSpeed ?? 1)
375+
})
376+
372377
webviewView.webview.options = {
373378
// Allow scripts in the webview
374379
enableScripts: true,

0 commit comments

Comments
 (0)