Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

fix(frontend): control reasoning mode/effort selects so model-change reset shows (refs #288)

Sergey Kozyrenko907440609cab
diff --git a/frontend/src/pages/settings/settings-provider.tsx b/frontend/src/pages/settings/settings-provider.tsx
index 325e6e2a..4c6b3ceb 100644
--- a/frontend/src/pages/settings/settings-provider.tsx
+++ b/frontend/src/pages/settings/settings-provider.tsx
@@ -661,9 +661,9 @@ function ReasoningFields({
<FormItem>
<FormLabel>Reasoning Mode</FormLabel>
<Select
- defaultValue={field.value ?? (isAdaptiveOnly ? ReasoningMode.Adaptive : 'none')}
disabled={isLoading || isAdaptiveOnly}
onValueChange={(value) => field.onChange(value !== 'none' ? value : null)}
+ value={field.value ?? (isAdaptiveOnly ? ReasoningMode.Adaptive : 'none')}
>
<FormControl>
<SelectTrigger>
@@ -696,9 +696,9 @@ function ReasoningFields({
<FormItem>
<FormLabel>Reasoning Effort</FormLabel>
<Select
- defaultValue={field.value ?? 'none'}
disabled={isLoading}
onValueChange={(value) => field.onChange(value !== 'none' ? value : null)}
+ value={field.value ?? 'none'}
>
<FormControl>
<SelectTrigger>
@@ -1524,10 +1524,6 @@ function SettingsProvider() {
label="Model"
name={`agents.${agentKey}.model`}
onOptionSelect={(option) => {
- {
- /* Update price fields */
- }
-
const price = option?.price;
setValue(