Checkpoints refactor (#4452)
* add grok coder free model to cline provider (#5808) * add free grok-coder-free model to cline provider * add changeset * fix typo * checkpoints class created * Added saveCheckpoint to Checkpoint class * Rebased and updated for new ClineMessages * Moved things around, started on saveCheckpoint * implemented handler for checking and initializing the checkpointTracker if not already done * Moved restoreCheckpoint and handleSucessfullRestore to checkpoints class * Moved presentMultiDiff, not yet connected * Migrated doesLatestTaskCompletionHaveNewChanges and compelted migration on presentMultifileDiff * Better init handling * moved fileContextTracker to new checkpoints class * Checkpoints state management * refactoring and cleanup in saveCheckpoint, init handler * More saveCheckpoint refactoring * Added sayTs return to say function for better async clineMessages updates * Refactor checkpoint system with timestamp tracking and dependency separation * More refactoring * Friendship ended with checkpointTracker, checkpointManager is new best friend * Better error handling * checkpointTrackerErrorMessage > checkpointManagerErrorMessage * Addressed possible race condition with message(Ts) * Better error handling and 15s timeout changes * Remove checkpoint delegation methods and call checkpoint manager directly * updating checkpoints protos * cleanup * Restored autoApprove entry to task class * cleanup * cleanup * Post-rebase fixes * Migrated timeout and state changes from PR #5015 * Extract toolExecutor callback functions to private methods for readability * Updated info/error messages to use HostProvider * post rebase fixes * Compare/diff button fix * Fix lint errors * Update webview-ui/src/components/chat/task-header/TaskHeader.tsx Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com> * Update src/integrations/checkpoints/index.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Fixed bad merge, updated focus change for compatability with new say() * Fixed error message propagation issue --------- Co-authored-by: pashpashpash <nik@cline.bot> Co-authored-by: Kevin Bond <kevin@Mac.hsd1.ca.comcast.net> Co-authored-by: Kevin Bond <kevin@Kevins-MacBook-Pro.local> Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
14 files changed
+1052
-546
No files matched your search
@@ -10,7 +10,7 @@ import { Controller } from ".."
|
||||
export async function taskCompletionViewChanges(controller: Controller, request: Int64Request): Promise<Empty> {
|
||||
try {
|
||||
if (request.value && controller.task) {
|
||||
await controller.task.presentMultifileDiff(request.value, true)
|
||||
await controller.task.checkpointManager?.presentMultifileDiff(request.value, true)
|
||||
}
|
||||
return Empty.create()
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user