diff --git a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift index ab1d0bb6cea..009266b2ecc 100644 --- a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift @@ -594,6 +594,7 @@ public struct AgentParams: Codable, Sendable { public let timeout: Int? public let besteffortdeliver: Bool? public let lane: String? + public let cleanupbundlemcponrunend: Bool? public let extrasystemprompt: String? public let bootstrapcontextmode: AnyCodable? public let bootstrapcontextrunkind: AnyCodable? @@ -625,6 +626,7 @@ public struct AgentParams: Codable, Sendable { timeout: Int?, besteffortdeliver: Bool?, lane: String?, + cleanupbundlemcponrunend: Bool?, extrasystemprompt: String?, bootstrapcontextmode: AnyCodable?, bootstrapcontextrunkind: AnyCodable?, @@ -655,6 +657,7 @@ public struct AgentParams: Codable, Sendable { self.timeout = timeout self.besteffortdeliver = besteffortdeliver self.lane = lane + self.cleanupbundlemcponrunend = cleanupbundlemcponrunend self.extrasystemprompt = extrasystemprompt self.bootstrapcontextmode = bootstrapcontextmode self.bootstrapcontextrunkind = bootstrapcontextrunkind @@ -687,6 +690,7 @@ public struct AgentParams: Codable, Sendable { case timeout case besteffortdeliver = "bestEffortDeliver" case lane + case cleanupbundlemcponrunend = "cleanupBundleMcpOnRunEnd" case extrasystemprompt = "extraSystemPrompt" case bootstrapcontextmode = "bootstrapContextMode" case bootstrapcontextrunkind = "bootstrapContextRunKind" diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index ab1d0bb6cea..009266b2ecc 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -594,6 +594,7 @@ public struct AgentParams: Codable, Sendable { public let timeout: Int? public let besteffortdeliver: Bool? public let lane: String? + public let cleanupbundlemcponrunend: Bool? public let extrasystemprompt: String? public let bootstrapcontextmode: AnyCodable? public let bootstrapcontextrunkind: AnyCodable? @@ -625,6 +626,7 @@ public struct AgentParams: Codable, Sendable { timeout: Int?, besteffortdeliver: Bool?, lane: String?, + cleanupbundlemcponrunend: Bool?, extrasystemprompt: String?, bootstrapcontextmode: AnyCodable?, bootstrapcontextrunkind: AnyCodable?, @@ -655,6 +657,7 @@ public struct AgentParams: Codable, Sendable { self.timeout = timeout self.besteffortdeliver = besteffortdeliver self.lane = lane + self.cleanupbundlemcponrunend = cleanupbundlemcponrunend self.extrasystemprompt = extrasystemprompt self.bootstrapcontextmode = bootstrapcontextmode self.bootstrapcontextrunkind = bootstrapcontextrunkind @@ -687,6 +690,7 @@ public struct AgentParams: Codable, Sendable { case timeout case besteffortdeliver = "bestEffortDeliver" case lane + case cleanupbundlemcponrunend = "cleanupBundleMcpOnRunEnd" case extrasystemprompt = "extraSystemPrompt" case bootstrapcontextmode = "bootstrapContextMode" case bootstrapcontextrunkind = "bootstrapContextRunKind" diff --git a/src/gateway/protocol/schema/agent.ts b/src/gateway/protocol/schema/agent.ts index d4277becfd1..6c70b7a87c2 100644 --- a/src/gateway/protocol/schema/agent.ts +++ b/src/gateway/protocol/schema/agent.ts @@ -152,6 +152,7 @@ export const AgentParamsSchema = Type.Object( timeout: Type.Optional(Type.Integer({ minimum: 0 })), bestEffortDeliver: Type.Optional(Type.Boolean()), lane: Type.Optional(Type.String()), + cleanupBundleMcpOnRunEnd: Type.Optional(Type.Boolean()), extraSystemPrompt: Type.Optional(Type.String()), bootstrapContextMode: Type.Optional( Type.Union([Type.Literal("full"), Type.Literal("lightweight")]),