From 944ba4ccfffb31f85ab3a9a015a212922c03c30b Mon Sep 17 00:00:00 2001 From: Duc Nguyen Date: Tue, 26 May 2026 08:01:01 +0700 Subject: [PATCH] fix(tts): wire dashboard tts.timeout_ms through ApplySystemConfigs + seed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ApplySystemConfigs and seedConfigForContext both handle tts.provider, tts.auto, tts.mode, tts.max_length — but neither carries tts.timeout_ms. Result: the dashboard /tts page Timeout (ms) input is inert; cfg.Tts.TimeoutMs stays at config.json default; setupTTS passes 0 to provider constructors; each provider falls back to its hardcoded default (e.g. edge = 30s). Two-line fix to mirror the existing pattern for the other tts.* keys. --- cmd/gateway_system_config_sync.go | 1 + internal/config/config_system.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/gateway_system_config_sync.go b/cmd/gateway_system_config_sync.go index dbff536f..0dfd8374 100644 --- a/cmd/gateway_system_config_sync.go +++ b/cmd/gateway_system_config_sync.go @@ -121,6 +121,7 @@ func seedConfigForContext(ctx context.Context, sc store.SystemConfigStore, cfg * set("tts.auto", cfg.Tts.Auto) set("tts.mode", cfg.Tts.Mode) setInt("tts.max_length", cfg.Tts.MaxLength) + setInt("tts.timeout_ms", cfg.Tts.TimeoutMs) // Cron setInt("cron.max_retries", cfg.Cron.MaxRetries) diff --git a/internal/config/config_system.go b/internal/config/config_system.go index 3d225ece..84974c0d 100644 --- a/internal/config/config_system.go +++ b/internal/config/config_system.go @@ -67,6 +67,7 @@ func (c *Config) ApplySystemConfigs(configs map[string]string) { str("tts.auto", &c.Tts.Auto) str("tts.mode", &c.Tts.Mode) integer("tts.max_length", &c.Tts.MaxLength) + integer("tts.timeout_ms", &c.Tts.TimeoutMs) // Cron integer("cron.max_retries", &c.Cron.MaxRetries)