From 6972b2a9756302f731ebd19eee9db2c44aaf8e90 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sat, 8 Mar 2025 18:17:37 -0800 Subject: [PATCH] Modify presentation of plan/act settings --- .../src/components/settings/SettingsView.tsx | 87 +++++++++++-------- 1 file changed, 53 insertions(+), 34 deletions(-) diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx index ec5f20bffa..f025af47ce 100644 --- a/webview-ui/src/components/settings/SettingsView.tsx +++ b/webview-ui/src/components/settings/SettingsView.tsx @@ -161,47 +161,45 @@ const SettingsView = ({ onDone }: SettingsViewProps) => { display: "flex", flexDirection: "column", }}> -
- { - const checked = e.target.checked === true - setPlanActSeparateModelsSetting(checked) - }}> - Use different models for Plan & Act - -
{/* Tabs container */} - {planActSeparateModelsSetting && ( + {planActSeparateModelsSetting ? (
- handleTabChange("plan")}> - Plan Mode - - handleTabChange("act")}> - Act Mode - -
- )} +
+ handleTabChange("plan")}> + Plan Mode + + handleTabChange("act")}> + Act Mode + +
- {/* Content container */} - {chatSettings.mode === "act" ? ( - + {/* Content container */} +
+ +
+ ) : ( {

+
+ { + const checked = e.target.checked === true + setPlanActSeparateModelsSetting(checked) + }}> + Use different models for Plan and Act modes + +

+ Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be + helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on. +

+
+