FIX: Initialize tts speed state in ClineProvider (#1799)

This commit is contained in:
Seth Miller 2025-03-19 00:44:59 -07:00 • committed by GitHub
parent 0e036fbd9f
commit de7cef29f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -369,6 +369,11 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
setTtsEnabled(ttsEnabled ?? false)
})
// Initialize tts speed state
this.getState().then(({ ttsSpeed }) => {
setTtsSpeed(ttsSpeed ?? 1)
})
webviewView.webview.options = {
// Allow scripts in the webview
enableScripts: true,