@@ -2,7 +2,6 @@ import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
2
2
import { useCallback , useState } from "react"
3
3
import { useExtensionState } from "../../context/ExtensionStateContext"
4
4
import { vscode } from "../../utils/vscode"
5
- import { vsCodeBadge } from "@vscode/webview-ui-toolkit"
6
5
7
6
interface AutoApproveAction {
8
7
id : string
@@ -42,51 +41,51 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
42
41
id : "readFiles" ,
43
42
label : "Read files and directories" ,
44
43
shortName : "Read" ,
45
- enabled : alwaysAllowReadOnly ?? true ,
44
+ enabled : alwaysAllowReadOnly ?? false ,
46
45
description : "Allows access to read any file on your computer." ,
47
46
} ,
48
47
{
49
48
id : "editFiles" ,
50
49
label : "Edit files" ,
51
50
shortName : "Edit" ,
52
- enabled : alwaysAllowWrite ?? true ,
51
+ enabled : alwaysAllowWrite ?? false ,
53
52
description : "Allows modification of any files on your computer." ,
54
53
} ,
55
54
{
56
55
id : "executeCommands" ,
57
56
label : "Execute approved commands" ,
58
57
shortName : "Commands" ,
59
- enabled : alwaysAllowExecute ?? true ,
58
+ enabled : alwaysAllowExecute ?? false ,
60
59
description :
61
60
"Allows execution of approved terminal commands. You can configure this in the settings panel." ,
62
61
} ,
63
62
{
64
63
id : "useBrowser" ,
65
64
label : "Use the browser" ,
66
65
shortName : "Browser" ,
67
- enabled : alwaysAllowBrowser ?? true ,
66
+ enabled : alwaysAllowBrowser ?? false ,
68
67
description : "Allows ability to launch and interact with any website in a headless browser." ,
69
68
} ,
70
69
{
71
70
id : "useMcp" ,
72
71
label : "Use MCP servers" ,
73
72
shortName : "MCP" ,
74
- enabled : alwaysAllowMcp ?? true ,
73
+ enabled : alwaysAllowMcp ?? false ,
75
74
description : "Allows use of configured MCP servers which may modify filesystem or interact with APIs." ,
76
75
} ,
77
76
{
78
77
id : "switchModes" ,
79
78
label : "Switch modes & create tasks" ,
80
79
shortName : "Modes" ,
81
- enabled : alwaysAllowModeSwitch ?? true ,
80
+ enabled : alwaysAllowModeSwitch ?? false ,
82
81
description :
83
82
"Allows automatic switching between different AI modes and creating new tasks without requiring approval." ,
84
83
} ,
85
84
{
86
85
id : "retryRequests" ,
87
86
label : "Retry failed requests" ,
88
87
shortName : "Retries" ,
89
- enabled : alwaysApproveResubmit ?? true ,
88
+ enabled : alwaysApproveResubmit ?? false ,
90
89
description : "Automatically retry failed API requests when the provider returns an error response." ,
91
90
} ,
92
91
]
@@ -160,6 +159,9 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
160
159
padding : "6px 6px 10px 6px" ,
161
160
// paddingBottom: "10px",
162
161
userSelect : "none" ,
162
+ borderTop : isExpanded
163
+ ? `0.5px solid color-mix(in srgb, var(--vscode-titleBar-inactiveForeground) 20%, transparent)`
164
+ : "none" ,
163
165
overflowY : "auto" ,
164
166
...style ,
165
167
} } >
0 commit comments