+
+
+
{t("settings:autoApprove.timeout.label")}
+
+
+ {/* Enable timeout handling */}
+
+
setCachedStateField("timeoutFallbackEnabled", e.target.checked)}
+ data-testid="timeout-fallback-enabled-checkbox">
+
+ {t("settings:autoApprove.timeout.timeoutFallbackEnabled.label")}
+
+
+
+ {t("settings:autoApprove.timeout.timeoutFallbackEnabled.description")}
+
+
+
+ {/* Tool execution timeout duration */}
+
+
+ {t("settings:autoApprove.timeout.toolExecutionTimeoutMs.label")}
+
+
setCachedStateField("toolExecutionTimeoutMs", parseInt(e.target.value))}
+ disabled={!timeoutFallbackEnabled}
+ className="w-32"
+ data-testid="tool-execution-timeout-input"
+ />
+
+ {t("settings:autoApprove.timeout.toolExecutionTimeoutMs.description")}
+
+
+
)
diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx
index 3ece8146af..fcb026ebb9 100644
--- a/webview-ui/src/components/settings/SettingsView.tsx
+++ b/webview-ui/src/components/settings/SettingsView.tsx
@@ -176,6 +176,8 @@ const SettingsView = forwardRef