From 31ecbbbf3dc263812976cf8fabbf0dbaf5bbecf1 Mon Sep 17 00:00:00 2001 From: libokai Date: Mon, 2 Mar 2026 03:56:12 +0800 Subject: [PATCH] fix(ios): reset pcmFormatUnavailable at start of reloadConfig for re-probe --- apps/ios/Sources/Voice/TalkModeManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ios/Sources/Voice/TalkModeManager.swift b/apps/ios/Sources/Voice/TalkModeManager.swift index 943bea38078..b3762627d07 100644 --- a/apps/ios/Sources/Voice/TalkModeManager.swift +++ b/apps/ios/Sources/Voice/TalkModeManager.swift @@ -1932,6 +1932,7 @@ extension TalkModeManager { func reloadConfig() async { guard let gateway else { return } + self.pcmFormatUnavailable = false do { let res = try await gateway.request(method: "talk.config", paramsJSON: "{\"includeSecrets\":true}", timeoutSeconds: 8) guard let json = try JSONSerialization.jsonObject(with: res) as? [String: Any] else { return } @@ -2003,7 +2004,6 @@ extension TalkModeManager { self.gatewayTalkDefaultModelId = nil self.gatewayTalkApiKeyConfigured = false self.gatewayTalkConfigLoaded = false - self.pcmFormatUnavailable = false } }