From 820092cfc3058b6a5d995e3156835a1a1c36a629 Mon Sep 17 00:00:00 2001
From: cte
Date: Fri, 7 Mar 2025 09:09:03 -0800
Subject: [PATCH 1/2] Disable repo-per-workspace checkpoints
---
src/core/Cline.ts | 12 ++++--
.../settings/CheckpointSettings.tsx | 37 +------------------
2 files changed, 10 insertions(+), 39 deletions(-)
diff --git a/src/core/Cline.ts b/src/core/Cline.ts
index e9353c0c77..51fb5265d4 100644
--- a/src/core/Cline.ts
+++ b/src/core/Cline.ts
@@ -3688,10 +3688,14 @@ export class Cline {
log,
}
- const service =
- this.checkpointStorage === "task"
- ? RepoPerTaskCheckpointService.create(options)
- : RepoPerWorkspaceCheckpointService.create(options)
+ // Only `task` is supported at the moment until we figure out how
+ // to fully isolate the `workspace` variant.
+ // const service =
+ // this.checkpointStorage === "task"
+ // ? RepoPerTaskCheckpointService.create(options)
+ // : RepoPerWorkspaceCheckpointService.create(options)
+
+ const service = RepoPerTaskCheckpointService.create(options)
service.on("initialize", () => {
try {
diff --git a/webview-ui/src/components/settings/CheckpointSettings.tsx b/webview-ui/src/components/settings/CheckpointSettings.tsx
index 56d5377b18..fa3b913832 100644
--- a/webview-ui/src/components/settings/CheckpointSettings.tsx
+++ b/webview-ui/src/components/settings/CheckpointSettings.tsx
@@ -1,8 +1,8 @@
import { HTMLAttributes } from "react"
-import { VSCodeCheckbox, VSCodeRadio, VSCodeRadioGroup } from "@vscode/webview-ui-toolkit/react"
+import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
import { GitBranch } from "lucide-react"
-import { CheckpointStorage, isCheckpointStorage } from "../../../../src/shared/checkpoints"
+import { CheckpointStorage } from "../../../../src/shared/checkpoints"
import { SetCachedStateField } from "./types"
import { SectionHeader } from "./SectionHeader"
@@ -42,39 +42,6 @@ export const CheckpointSettings = ({
When enabled, Roo will automatically create checkpoints during task execution, making it easy to
review changes or revert to earlier states.
- {enableCheckpoints && (
-
-
Storage
-
{
- if ("target" in e) {
- const { value } = e.target as HTMLInputElement
-
- if (isCheckpointStorage(value)) {
- setCachedStateField("checkpointStorage", value)
- }
- }
- }}>
- Task
- Workspace
-
- {checkpointStorage === "task" && (
-
- Each task will have it's own dedicated git repository for storing checkpoints. This
- provides the best isolation between tasks but uses more disk space.
-
- )}
- {checkpointStorage === "workspace" && (
-
- Each VSCode workspace will have it's own dedicated git repository for storing
- checkpoints and tasks within a workspace will share this repository. This option
- provides better performance and disk space efficiency.
-
- )}
-
- )}
From 8f85dbe991c1c6499a21a12c1ff3489f628ef749 Mon Sep 17 00:00:00 2001
From: cte
Date: Fri, 7 Mar 2025 09:11:04 -0800
Subject: [PATCH 2/2] Add changeset
---
.changeset/nine-cameras-applaud.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 .changeset/nine-cameras-applaud.md
diff --git a/.changeset/nine-cameras-applaud.md b/.changeset/nine-cameras-applaud.md
new file mode 100644
index 0000000000..4a02007f8e
--- /dev/null
+++ b/.changeset/nine-cameras-applaud.md
@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Disable repo-per-workspace checkpoints