Skip to content

Commit 7150202

Browse files
authored
Merge pull request #39 from trypear/auto-approve-2
Added auto-approve
2 parents b77a0df + 64f0698 commit 7150202

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,7 +2533,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
25332533
fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0,
25342534
mcpEnabled: mcpEnabled ?? true,
25352535
enableMcpServerCreation: enableMcpServerCreation ?? true,
2536-
alwaysApproveResubmit: alwaysApproveResubmit ?? false,
2536+
alwaysApproveResubmit: alwaysApproveResubmit ?? true,
25372537
requestDelaySeconds: requestDelaySeconds ?? 10,
25382538
rateLimitSeconds: rateLimitSeconds ?? 0,
25392539
currentApiConfigName: currentApiConfigName ?? "default",
@@ -2668,13 +2668,13 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
26682668
apiConfiguration,
26692669
lastShownAnnouncementId: stateValues.lastShownAnnouncementId,
26702670
customInstructions: stateValues.customInstructions,
2671-
alwaysAllowReadOnly: stateValues.alwaysAllowReadOnly ?? false,
2672-
alwaysAllowWrite: stateValues.alwaysAllowWrite ?? false,
2673-
alwaysAllowExecute: stateValues.alwaysAllowExecute ?? false,
2674-
alwaysAllowBrowser: stateValues.alwaysAllowBrowser ?? false,
2675-
alwaysAllowMcp: stateValues.alwaysAllowMcp ?? false,
2676-
alwaysAllowModeSwitch: stateValues.alwaysAllowModeSwitch ?? false,
2677-
alwaysAllowSubtasks: stateValues.alwaysAllowSubtasks ?? false,
2671+
alwaysAllowReadOnly: stateValues.alwaysAllowReadOnly ?? true,
2672+
alwaysAllowWrite: stateValues.alwaysAllowWrite ?? true,
2673+
alwaysAllowExecute: stateValues.alwaysAllowExecute ?? true,
2674+
alwaysAllowBrowser: stateValues.alwaysAllowBrowser ?? true,
2675+
alwaysAllowMcp: stateValues.alwaysAllowMcp ?? true,
2676+
alwaysAllowModeSwitch: stateValues.alwaysAllowModeSwitch ?? true,
2677+
alwaysAllowSubtasks: stateValues.alwaysAllowSubtasks ?? true,
26782678
taskHistory: stateValues.taskHistory,
26792679
allowedCommands: stateValues.allowedCommands,
26802680
soundEnabled: stateValues.soundEnabled ?? false,
@@ -2707,7 +2707,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
27072707
customSupportPrompts: stateValues.customSupportPrompts ?? {},
27082708
enhancementApiConfigId: stateValues.enhancementApiConfigId,
27092709
experiments: stateValues.experiments ?? experimentDefault,
2710-
autoApprovalEnabled: stateValues.autoApprovalEnabled ?? false,
2710+
autoApprovalEnabled: stateValues.autoApprovalEnabled ?? true,
27112711
customModes,
27122712
maxOpenTabsContext: stateValues.maxOpenTabsContext ?? 20,
27132713
maxWorkspaceFiles: stateValues.maxWorkspaceFiles ?? 200,

0 commit comments

Comments
 (0)