diff --git a/apps/macos/Sources/Clawdis/AnthropicOAuth.swift b/apps/macos/Sources/Clawdis/AnthropicOAuth.swift index 280ed5efa..4a47ac2e1 100644 --- a/apps/macos/Sources/Clawdis/AnthropicOAuth.swift +++ b/apps/macos/Sources/Clawdis/AnthropicOAuth.swift @@ -137,15 +137,14 @@ enum PiOAuthStore { static func saveAnthropicOAuth(_ creds: AnthropicOAuthCredentials) throws { let url = self.oauthURL() - let existing: [String: Any] - if FileManager.default.fileExists(atPath: url.path), - let data = try? Data(contentsOf: url), - let json = try? JSONSerialization.jsonObject(with: data, options: []), - let dict = json as? [String: Any] + let existing: [String: Any] = if FileManager.default.fileExists(atPath: url.path), + let data = try? Data(contentsOf: url), + let json = try? JSONSerialization.jsonObject(with: data, options: []), + let dict = json as? [String: Any] { - existing = dict + dict } else { - existing = [:] + [:] } var updated = existing diff --git a/apps/macos/Sources/Clawdis/AppState.swift b/apps/macos/Sources/Clawdis/AppState.swift index 1b250f389..315e59568 100644 --- a/apps/macos/Sources/Clawdis/AppState.swift +++ b/apps/macos/Sources/Clawdis/AppState.swift @@ -333,7 +333,7 @@ final class AppState { _ = try await GatewayConnection.shared.request( method: "voicewake.set", params: ["triggers": AnyCodable(sanitized)], - timeoutMs: 10_000) + timeoutMs: 10000) } catch { // Best-effort only. }