@@ -64,7 +64,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
6464 private cline ?: Cline
6565 private workspaceTracker ?: WorkspaceTracker
6666 protected mcpHub ?: McpHub // Change from private to protected
67- private latestAnnouncementId = "jan-21 -2025-custom-modes " // update to some unique identifier when we add a new announcement
67+ private latestAnnouncementId = "feb-27 -2025-automatic-checkpoints " // update to some unique identifier when we add a new announcement
6868 configManager : ConfigManager
6969 customModesManager : CustomModesManager
7070
@@ -317,7 +317,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
317317 apiConfiguration,
318318 customModePrompts,
319319 diffEnabled,
320- checkpointsEnabled ,
320+ enableCheckpoints ,
321321 fuzzyMatchThreshold,
322322 mode,
323323 customInstructions : globalInstructions ,
@@ -332,7 +332,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
332332 apiConfiguration,
333333 customInstructions : effectiveInstructions ,
334334 enableDiff : diffEnabled ,
335- enableCheckpoints : checkpointsEnabled ,
335+ enableCheckpoints,
336336 fuzzyMatchThreshold,
337337 task,
338338 images,
@@ -347,7 +347,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
347347 apiConfiguration,
348348 customModePrompts,
349349 diffEnabled,
350- checkpointsEnabled ,
350+ enableCheckpoints ,
351351 fuzzyMatchThreshold,
352352 mode,
353353 customInstructions : globalInstructions ,
@@ -362,7 +362,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
362362 apiConfiguration,
363363 customInstructions : effectiveInstructions ,
364364 enableDiff : diffEnabled ,
365- enableCheckpoints : checkpointsEnabled ,
365+ enableCheckpoints,
366366 fuzzyMatchThreshold,
367367 historyItem,
368368 experiments,
@@ -1017,9 +1017,9 @@ export class ClineProvider implements vscode.WebviewViewProvider {
10171017 await this . updateGlobalState ( "diffEnabled" , diffEnabled )
10181018 await this . postStateToWebview ( )
10191019 break
1020- case "checkpointsEnabled " :
1021- const checkpointsEnabled = message . bool ?? false
1022- await this . updateGlobalState ( "checkpointsEnabled " , checkpointsEnabled )
1020+ case "enableCheckpoints " :
1021+ const enableCheckpoints = message . bool ?? true
1022+ await this . updateGlobalState ( "enableCheckpoints " , enableCheckpoints )
10231023 await this . postStateToWebview ( )
10241024 break
10251025 case "browserViewportSize" :
@@ -1939,11 +1939,11 @@ export class ClineProvider implements vscode.WebviewViewProvider {
19391939 await fs . unlink ( legacyMessagesFilePath )
19401940 }
19411941
1942- const { checkpointsEnabled } = await this . getState ( )
1942+ const { enableCheckpoints } = await this . getState ( )
19431943 const baseDir = vscode . workspace . workspaceFolders ?. map ( ( folder ) => folder . uri . fsPath ) . at ( 0 )
19441944
19451945 // Delete checkpoints branch.
1946- if ( checkpointsEnabled && baseDir ) {
1946+ if ( enableCheckpoints && baseDir ) {
19471947 const branchSummary = await simpleGit ( baseDir )
19481948 . branch ( [ "-D" , `roo-code-checkpoints-${ id } ` ] )
19491949 . catch ( ( ) => undefined )
@@ -1999,7 +1999,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
19991999 alwaysAllowModeSwitch,
20002000 soundEnabled,
20012001 diffEnabled,
2002- checkpointsEnabled ,
2002+ enableCheckpoints ,
20032003 taskHistory,
20042004 soundVolume,
20052005 browserViewportSize,
@@ -2048,7 +2048,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
20482048 . sort ( ( a : HistoryItem , b : HistoryItem ) => b . ts - a . ts ) ,
20492049 soundEnabled : soundEnabled ?? false ,
20502050 diffEnabled : diffEnabled ?? true ,
2051- checkpointsEnabled : checkpointsEnabled ?? false ,
2051+ enableCheckpoints : enableCheckpoints ?? true ,
20522052 shouldShowAnnouncement : lastShownAnnouncementId !== this . latestAnnouncementId ,
20532053 allowedCommands,
20542054 soundVolume : soundVolume ?? 0.5 ,
@@ -2181,7 +2181,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
21812181 allowedCommands ,
21822182 soundEnabled ,
21832183 diffEnabled ,
2184- checkpointsEnabled ,
2184+ enableCheckpoints ,
21852185 soundVolume ,
21862186 browserViewportSize ,
21872187 fuzzyMatchThreshold ,
@@ -2265,7 +2265,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
22652265 this . getGlobalState ( "allowedCommands" ) as Promise < string [ ] | undefined > ,
22662266 this . getGlobalState ( "soundEnabled" ) as Promise < boolean | undefined > ,
22672267 this . getGlobalState ( "diffEnabled" ) as Promise < boolean | undefined > ,
2268- this . getGlobalState ( "checkpointsEnabled " ) as Promise < boolean | undefined > ,
2268+ this . getGlobalState ( "enableCheckpoints " ) as Promise < boolean | undefined > ,
22692269 this . getGlobalState ( "soundVolume" ) as Promise < number | undefined > ,
22702270 this . getGlobalState ( "browserViewportSize" ) as Promise < string | undefined > ,
22712271 this . getGlobalState ( "fuzzyMatchThreshold" ) as Promise < number | undefined > ,
@@ -2376,7 +2376,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
23762376 allowedCommands,
23772377 soundEnabled : soundEnabled ?? false ,
23782378 diffEnabled : diffEnabled ?? true ,
2379- checkpointsEnabled : checkpointsEnabled ?? false ,
2379+ enableCheckpoints : enableCheckpoints ?? true ,
23802380 soundVolume,
23812381 browserViewportSize : browserViewportSize ?? "900x600" ,
23822382 screenshotQuality : screenshotQuality ?? 75 ,
0 commit comments