diff --git a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift index 0cf9d0c47..80293f0d1 100644 --- a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift @@ -1099,14 +1099,18 @@ public struct SessionsPatchParams: Codable, Sendable { public struct SessionsResetParams: Codable, Sendable { public let key: String + public let reason: AnyCodable? public init( - key: String + key: String, + reason: AnyCodable? ) { self.key = key + self.reason = reason } private enum CodingKeys: String, CodingKey { case key + case reason } } diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index 0cf9d0c47..80293f0d1 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -1099,14 +1099,18 @@ public struct SessionsPatchParams: Codable, Sendable { public struct SessionsResetParams: Codable, Sendable { public let key: String + public let reason: AnyCodable? public init( - key: String + key: String, + reason: AnyCodable? ) { self.key = key + self.reason = reason } private enum CodingKeys: String, CodingKey { case key + case reason } }