|
1 | 1 | import { HTMLAttributes } from "react" |
2 | | -import { VSCodeCheckbox, VSCodeRadio, VSCodeRadioGroup } from "@vscode/webview-ui-toolkit/react" |
| 2 | +import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react" |
3 | 3 | import { GitBranch } from "lucide-react" |
4 | 4 |
|
5 | | -import { CheckpointStorage, isCheckpointStorage } from "../../../../src/shared/checkpoints" |
| 5 | +import { CheckpointStorage } from "../../../../src/shared/checkpoints" |
6 | 6 |
|
7 | 7 | import { SetCachedStateField } from "./types" |
8 | 8 | import { SectionHeader } from "./SectionHeader" |
@@ -42,39 +42,6 @@ export const CheckpointSettings = ({ |
42 | 42 | When enabled, Roo will automatically create checkpoints during task execution, making it easy to |
43 | 43 | review changes or revert to earlier states. |
44 | 44 | </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 | | - )} |
78 | 45 | </div> |
79 | 46 | </Section> |
80 | 47 | </div> |
|
0 commit comments