From 050c47d3a716141df4f7bc4d7dfc996a16f48d55 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 13 Dec 2025 17:30:53 +0000 Subject: [PATCH] fix(macos): encode gateway params without AnyHashable --- apps/macos/Sources/Clawdis/ControlChannel.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/macos/Sources/Clawdis/ControlChannel.swift b/apps/macos/Sources/Clawdis/ControlChannel.swift index cb58e7d96..f363bbc0f 100644 --- a/apps/macos/Sources/Clawdis/ControlChannel.swift +++ b/apps/macos/Sources/Clawdis/ControlChannel.swift @@ -121,7 +121,9 @@ final class ControlChannel: ObservableObject { timeoutMs: Double? = nil) async throws -> Data { do { - let rawParams = params?.reduce(into: [String: AnyCodable]()) { $0[$1.key] = AnyCodable($1.value) } + let rawParams = params?.reduce(into: [String: AnyCodable]()) { + $0[$1.key] = AnyCodable($1.value.base) + } let data = try await GatewayConnection.shared.request( method: method, params: rawParams,