Skip to content

Commit 83da295

Browse files
authored
Fix auto-approve todo settings (#5482)
1 parent 3289322 commit 83da295

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

webview-ui/src/components/settings/AutoApproveSettings.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type AutoApproveSettingsProps = HTMLAttributes<HTMLDivElement> & {
2626
alwaysAllowSubtasks?: boolean
2727
alwaysAllowExecute?: boolean
2828
alwaysAllowFollowupQuestions?: boolean
29+
alwaysAllowUpdateTodoList?: boolean
2930
followupAutoApproveTimeoutMs?: number
3031
allowedCommands?: string[]
3132
setCachedStateField: SetCachedStateField<
@@ -65,6 +66,7 @@ export const AutoApproveSettings = ({
6566
alwaysAllowExecute,
6667
alwaysAllowFollowupQuestions,
6768
followupAutoApproveTimeoutMs = 60000,
69+
alwaysAllowUpdateTodoList,
6870
allowedCommands,
6971
setCachedStateField,
7072
...props
@@ -103,6 +105,7 @@ export const AutoApproveSettings = ({
103105
alwaysAllowSubtasks={alwaysAllowSubtasks}
104106
alwaysAllowExecute={alwaysAllowExecute}
105107
alwaysAllowFollowupQuestions={alwaysAllowFollowupQuestions}
108+
alwaysAllowUpdateTodoList={alwaysAllowUpdateTodoList}
106109
onToggle={(key, value) => setCachedStateField(key, value)}
107110
/>
108111

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
175175
customSupportPrompts,
176176
profileThresholds,
177177
alwaysAllowFollowupQuestions,
178+
alwaysAllowUpdateTodoList,
178179
followupAutoApproveTimeoutMs,
179180
} = cachedState
180181

@@ -314,6 +315,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
314315
vscode.postMessage({ type: "alwaysAllowModeSwitch", bool: alwaysAllowModeSwitch })
315316
vscode.postMessage({ type: "alwaysAllowSubtasks", bool: alwaysAllowSubtasks })
316317
vscode.postMessage({ type: "alwaysAllowFollowupQuestions", bool: alwaysAllowFollowupQuestions })
318+
vscode.postMessage({ type: "alwaysAllowUpdateTodoList", bool: alwaysAllowUpdateTodoList })
317319
vscode.postMessage({ type: "followupAutoApproveTimeoutMs", value: followupAutoApproveTimeoutMs })
318320
vscode.postMessage({ type: "condensingApiConfigId", text: condensingApiConfigId || "" })
319321
vscode.postMessage({ type: "updateCondensingPrompt", text: customCondensingPrompt || "" })
@@ -606,6 +608,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
606608
alwaysAllowSubtasks={alwaysAllowSubtasks}
607609
alwaysAllowExecute={alwaysAllowExecute}
608610
alwaysAllowFollowupQuestions={alwaysAllowFollowupQuestions}
611+
alwaysAllowUpdateTodoList={alwaysAllowUpdateTodoList}
609612
followupAutoApproveTimeoutMs={followupAutoApproveTimeoutMs}
610613
allowedCommands={allowedCommands}
611614
setCachedStateField={setCachedStateField}

0 commit comments

Comments
 (0)