Skip to content

Commit 670cd88

Browse files
auto approve fixes
1 parent 5223fce commit 670cd88

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

webview-ui/src/components/chat/AutoApproveMenu.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
22
import { useCallback, useState } from "react"
33
import { useExtensionState } from "../../context/ExtensionStateContext"
44
import { vscode } from "../../utils/vscode"
5-
import { vsCodeBadge } from "@vscode/webview-ui-toolkit"
65

76
interface AutoApproveAction {
87
id: string
@@ -42,51 +41,51 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
4241
id: "readFiles",
4342
label: "Read files and directories",
4443
shortName: "Read",
45-
enabled: alwaysAllowReadOnly ?? true,
44+
enabled: alwaysAllowReadOnly ?? false,
4645
description: "Allows access to read any file on your computer.",
4746
},
4847
{
4948
id: "editFiles",
5049
label: "Edit files",
5150
shortName: "Edit",
52-
enabled: alwaysAllowWrite ?? true,
51+
enabled: alwaysAllowWrite ?? false,
5352
description: "Allows modification of any files on your computer.",
5453
},
5554
{
5655
id: "executeCommands",
5756
label: "Execute approved commands",
5857
shortName: "Commands",
59-
enabled: alwaysAllowExecute ?? true,
58+
enabled: alwaysAllowExecute ?? false,
6059
description:
6160
"Allows execution of approved terminal commands. You can configure this in the settings panel.",
6261
},
6362
{
6463
id: "useBrowser",
6564
label: "Use the browser",
6665
shortName: "Browser",
67-
enabled: alwaysAllowBrowser ?? true,
66+
enabled: alwaysAllowBrowser ?? false,
6867
description: "Allows ability to launch and interact with any website in a headless browser.",
6968
},
7069
{
7170
id: "useMcp",
7271
label: "Use MCP servers",
7372
shortName: "MCP",
74-
enabled: alwaysAllowMcp ?? true,
73+
enabled: alwaysAllowMcp ?? false,
7574
description: "Allows use of configured MCP servers which may modify filesystem or interact with APIs.",
7675
},
7776
{
7877
id: "switchModes",
7978
label: "Switch modes & create tasks",
8079
shortName: "Modes",
81-
enabled: alwaysAllowModeSwitch ?? true,
80+
enabled: alwaysAllowModeSwitch ?? false,
8281
description:
8382
"Allows automatic switching between different AI modes and creating new tasks without requiring approval.",
8483
},
8584
{
8685
id: "retryRequests",
8786
label: "Retry failed requests",
8887
shortName: "Retries",
89-
enabled: alwaysApproveResubmit ?? true,
88+
enabled: alwaysApproveResubmit ?? false,
9089
description: "Automatically retry failed API requests when the provider returns an error response.",
9190
},
9291
]
@@ -160,6 +159,9 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
160159
padding: "6px 6px 10px 6px",
161160
// paddingBottom: "10px",
162161
userSelect: "none",
162+
borderTop: isExpanded
163+
? `0.5px solid color-mix(in srgb, var(--vscode-titleBar-inactiveForeground) 20%, transparent)`
164+
: "none",
163165
overflowY: "auto",
164166
...style,
165167
}}>

0 commit comments

Comments
 (0)