Skip to content

Commit 9ad8aaf

Browse files
authored
Merge pull request RooCodeInc#1454 from RooVetGit/cte/disable-repo-per-workspace-checkpoints
Disable repo per workspace checkpoints
2 parents f92817a + 8f85dbe commit 9ad8aaf

File tree

3 files changed

+15
-39
lines changed

3 files changed

+15
-39
lines changed

.changeset/nine-cameras-applaud.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Disable repo-per-workspace checkpoints

src/core/Cline.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3688,10 +3688,14 @@ export class Cline {
36883688
log,
36893689
}
36903690

3691-
const service =
3692-
this.checkpointStorage === "task"
3693-
? RepoPerTaskCheckpointService.create(options)
3694-
: RepoPerWorkspaceCheckpointService.create(options)
3691+
// Only `task` is supported at the moment until we figure out how
3692+
// to fully isolate the `workspace` variant.
3693+
// const service =
3694+
// this.checkpointStorage === "task"
3695+
// ? RepoPerTaskCheckpointService.create(options)
3696+
// : RepoPerWorkspaceCheckpointService.create(options)
3697+
3698+
const service = RepoPerTaskCheckpointService.create(options)
36953699

36963700
service.on("initialize", () => {
36973701
try {

webview-ui/src/components/settings/CheckpointSettings.tsx

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { HTMLAttributes } from "react"
2-
import { VSCodeCheckbox, VSCodeRadio, VSCodeRadioGroup } from "@vscode/webview-ui-toolkit/react"
2+
import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
33
import { GitBranch } from "lucide-react"
44

5-
import { CheckpointStorage, isCheckpointStorage } from "../../../../src/shared/checkpoints"
5+
import { CheckpointStorage } from "../../../../src/shared/checkpoints"
66

77
import { SetCachedStateField } from "./types"
88
import { SectionHeader } from "./SectionHeader"
@@ -42,39 +42,6 @@ export const CheckpointSettings = ({
4242
When enabled, Roo will automatically create checkpoints during task execution, making it easy to
4343
review changes or revert to earlier states.
4444
</p>
45-
{enableCheckpoints && (
46-
<div>
47-
<div className="font-medium">Storage</div>
48-
<VSCodeRadioGroup
49-
role="radiogroup"
50-
value={checkpointStorage}
51-
onChange={(e) => {
52-
if ("target" in e) {
53-
const { value } = e.target as HTMLInputElement
54-
55-
if (isCheckpointStorage(value)) {
56-
setCachedStateField("checkpointStorage", value)
57-
}
58-
}
59-
}}>
60-
<VSCodeRadio value="task">Task</VSCodeRadio>
61-
<VSCodeRadio value="workspace">Workspace</VSCodeRadio>
62-
</VSCodeRadioGroup>
63-
{checkpointStorage === "task" && (
64-
<p className="text-vscode-descriptionForeground text-sm mt-0">
65-
Each task will have it's own dedicated git repository for storing checkpoints. This
66-
provides the best isolation between tasks but uses more disk space.
67-
</p>
68-
)}
69-
{checkpointStorage === "workspace" && (
70-
<p className="text-vscode-descriptionForeground text-sm mt-0">
71-
Each VSCode workspace will have it's own dedicated git repository for storing
72-
checkpoints and tasks within a workspace will share this repository. This option
73-
provides better performance and disk space efficiency.
74-
</p>
75-
)}
76-
</div>
77-
)}
7845
</div>
7946
</Section>
8047
</div>

0 commit comments

Comments
 (0)