diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 304c968622f..f70a19bd477 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -2044,11 +2044,11 @@ export class ClineProvider implements vscode.WebviewViewProvider { version: this.context.extension?.packageJSON?.version ?? "", apiConfiguration, customInstructions, - alwaysAllowReadOnly: alwaysAllowReadOnly ?? false, - alwaysAllowWrite: alwaysAllowWrite ?? false, - alwaysAllowExecute: alwaysAllowExecute ?? false, - alwaysAllowBrowser: alwaysAllowBrowser ?? false, - alwaysAllowMcp: alwaysAllowMcp ?? false, + alwaysAllowReadOnly: alwaysAllowReadOnly ?? true, + alwaysAllowWrite: alwaysAllowWrite ?? true, + alwaysAllowExecute: alwaysAllowExecute ?? true, + alwaysAllowBrowser: alwaysAllowBrowser ?? true, + alwaysAllowMcp: alwaysAllowMcp ?? true, alwaysAllowModeSwitch: alwaysAllowModeSwitch ?? false, uriScheme: vscode.env.uriScheme, clineMessages: this.cline?.clineMessages || [], @@ -2067,7 +2067,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { terminalOutputLineLimit: terminalOutputLineLimit ?? 500, fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0, mcpEnabled: mcpEnabled ?? true, - alwaysApproveResubmit: alwaysApproveResubmit ?? false, + alwaysApproveResubmit: alwaysApproveResubmit ?? true, requestDelaySeconds: requestDelaySeconds ?? 10, rateLimitSeconds: rateLimitSeconds ?? 0, currentApiConfigName: currentApiConfigName ?? "default", @@ -2076,7 +2076,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { customModePrompts: customModePrompts ?? {}, customSupportPrompts: customSupportPrompts ?? {}, enhancementApiConfigId, - autoApprovalEnabled: autoApprovalEnabled ?? false, + autoApprovalEnabled: autoApprovalEnabled ?? true, customModes: await this.customModesManager.getCustomModes(), experiments: experiments ?? experimentDefault, } @@ -2354,12 +2354,12 @@ export class ClineProvider implements vscode.WebviewViewProvider { }, lastShownAnnouncementId, customInstructions, - alwaysAllowReadOnly: alwaysAllowReadOnly ?? false, - alwaysAllowWrite: alwaysAllowWrite ?? false, - alwaysAllowExecute: alwaysAllowExecute ?? false, - alwaysAllowBrowser: alwaysAllowBrowser ?? false, - alwaysAllowMcp: alwaysAllowMcp ?? false, - alwaysAllowModeSwitch: alwaysAllowModeSwitch ?? false, + alwaysAllowReadOnly: alwaysAllowReadOnly ?? true, + alwaysAllowWrite: alwaysAllowWrite ?? true, + alwaysAllowExecute: alwaysAllowExecute ?? true, + alwaysAllowBrowser: alwaysAllowBrowser ?? true, + alwaysAllowMcp: alwaysAllowMcp ?? true, + alwaysAllowModeSwitch: alwaysAllowModeSwitch ?? true, taskHistory, allowedCommands, soundEnabled: soundEnabled ?? false, @@ -2401,7 +2401,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { return langMap[vscodeLang.split("-")[0]] ?? "English" })(), mcpEnabled: mcpEnabled ?? true, - alwaysApproveResubmit: alwaysApproveResubmit ?? false, + alwaysApproveResubmit: alwaysApproveResubmit ?? true, requestDelaySeconds: Math.max(5, requestDelaySeconds ?? 10), rateLimitSeconds: rateLimitSeconds ?? 0, currentApiConfigName: currentApiConfigName ?? "default", @@ -2411,7 +2411,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { customSupportPrompts: customSupportPrompts ?? {}, enhancementApiConfigId, experiments: experiments ?? experimentDefault, - autoApprovalEnabled: autoApprovalEnabled ?? false, + autoApprovalEnabled: autoApprovalEnabled ?? true, customModes, } } diff --git a/webview-ui/src/components/chat/AutoApproveMenu.tsx b/webview-ui/src/components/chat/AutoApproveMenu.tsx index 386c2d6f2bb..e28fdbcc5b9 100644 --- a/webview-ui/src/components/chat/AutoApproveMenu.tsx +++ b/webview-ui/src/components/chat/AutoApproveMenu.tsx @@ -174,9 +174,9 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { onClick={toggleExpanded}>