Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(frontend): reset agent reasoning when the model changes (refs #288)
Sergey Kozyrenko0fa53a551eda
diff --git a/frontend/src/pages/settings/settings-provider.tsx b/frontend/src/pages/settings/settings-provider.tsxindex 5ccff16e..c2380392 100644--- a/frontend/src/pages/settings/settings-provider.tsx+++ b/frontend/src/pages/settings/settings-provider.tsx@@ -1546,6 +1546,16 @@ function SettingsProvider() {`agents.${agentKey}.price.cacheWrite` as const,price?.cacheWrite ?? null,);++ // Reset reasoning on model change: adaptive-only models lock+ // to adaptive, others clear the now-stale mode/effort.+ setValue(+ `agents.${agentKey}.reasoning.mode` as const,+ option?.reasoning?.mode === ModelReasoningMode.AdaptiveOnly+ ? ReasoningMode.Adaptive+ : null,+ );+ setValue(`agents.${agentKey}.reasoning.effort` as const, null);}}options={availableModels}placeholder="Select or enter model name"