Fix plan/act switching if no model id set or thinking budget changed

This commit is contained in:
Saoud Rizwan
2025-03-08 16:21:54 -08:00
parent 4e2f3d9b0e
commit 311a4d6ee8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -975,7 +975,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
}
// Restore the model used in previous mode
if (newApiProvider && newModelId) {
if (newApiProvider || newModelId || newThinkingBudgetTokens) {
await this.updateGlobalState("apiProvider", newApiProvider)
await this.updateGlobalState("thinkingBudgetTokens", newThinkingBudgetTokens)
switch (newApiProvider) {
@@ -102,7 +102,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
mode: tab,
},
})
}, 150)
}, 120)
// return
// // const newMode = chatSettings.mode === "plan" ? "act" : "plan"
// vscode.postMessage({