Files
cline-multi-mirror/src/core/controller/task/taskCompletionViewChanges.ts
T
HybridTalentComputing 8d519391b1 Sync with upstream v3.83.0
Replace all files with clean upstream Cline v3.83.0 content.
ShengSuanYun provider code automatically removed.
2026-05-15 13:02:01 +08:00

23 lines
827 B
TypeScript

import { Empty, Int64Request } from "@shared/proto/cline/common"
import { Logger } from "@/shared/services/Logger"
import { Controller } from ".."
/**
* Shows task completion changes in a diff view
* @param controller The controller instance
* @param request The request containing the timestamp of the message
* @returns Empty response
*/
export async function taskCompletionViewChanges(controller: Controller, request: Int64Request): Promise<Empty> {
try {
if (request.value && controller.task) {
// presentMultifileDiff is optional on ICheckpointManager, so capture then optionally invoke
await controller.task.checkpointManager?.presentMultifileDiff?.(request.value, true)
}
return Empty.create()
} catch (error) {
Logger.error("Error in taskCompletionViewChanges handler:", error)
throw error
}
}