mirror of
https://github.com/cline/cline.git
synced 2026-10-29 17:42:34 +08:00
Fix plan/act switching if no model id set or thinking budget changed
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user