diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index 5de1abdc8a83..ee693680bfba 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -4818,6 +4818,7 @@ public struct SessionCompactionCheckpoint: Codable, Sendable { public let reason: AnyCodable public let tokensbefore: Int? public let tokensafter: Int? + public let tokensversion: Double? public let summary: String? public let firstkeptentryid: String? public let precompaction: [String: AnyCodable] @@ -4831,6 +4832,7 @@ public struct SessionCompactionCheckpoint: Codable, Sendable { reason: AnyCodable, tokensbefore: Int? = nil, tokensafter: Int? = nil, + tokensversion: Double? = nil, summary: String? = nil, firstkeptentryid: String? = nil, precompaction: [String: AnyCodable], @@ -4843,6 +4845,7 @@ public struct SessionCompactionCheckpoint: Codable, Sendable { self.reason = reason self.tokensbefore = tokensbefore self.tokensafter = tokensafter + self.tokensversion = tokensversion self.summary = summary self.firstkeptentryid = firstkeptentryid self.precompaction = precompaction @@ -4857,6 +4860,7 @@ public struct SessionCompactionCheckpoint: Codable, Sendable { case reason case tokensbefore = "tokensBefore" case tokensafter = "tokensAfter" + case tokensversion = "tokensVersion" case summary case firstkeptentryid = "firstKeptEntryId" case precompaction = "preCompaction"