Skip to content

Commit dc9fb4d

Browse files
authored
Fix vs code lm plan/act toggle (RooCodeInc#2409)
1 parent f9c46f8 commit dc9fb4d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.8.1]
4+
5+
- Fix bug where switching to plan/act would result in VS Code LM provider model ID being reset
6+
37
## [3.8.0]
48

59
- Add 'Add to Cline' as an option when you right-click in a file or the terminal, making it easier to add context to your current task

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "claude-dev",
33
"displayName": "Cline",
44
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, running commands, using the browser, and more with your permission every step of the way.",
5-
"version": "3.8.0",
5+
"version": "3.8.1",
66
"icon": "assets/icons/icon.png",
77
"engines": {
88
"vscode": "^1.84.0"

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,8 +2285,7 @@ Here is the project's README to help you get started:\n\n${mcpDetails.readmeCont
22852285
qwenApiLine,
22862286
mistralApiKey,
22872287
azureApiVersion,
2288-
// Fixes bug where switching to plan/act would result in setting this model id to previousModeModelId which may have been a non-string value by default, causing a type error in the webview when calling .toLowerCase() on it.
2289-
openRouterModelId: openRouterModelId ? String(openRouterModelId) : undefined,
2288+
openRouterModelId,
22902289
openRouterModelInfo,
22912290
openRouterProviderSorting,
22922291
vsCodeLmModelSelector,
@@ -2308,7 +2307,7 @@ Here is the project's README to help you get started:\n\n${mcpDetails.readmeCont
23082307
chatSettings: chatSettings || DEFAULT_CHAT_SETTINGS,
23092308
userInfo,
23102309
previousModeApiProvider,
2311-
previousModeModelId: previousModeModelId ? String(previousModeModelId) : undefined,
2310+
previousModeModelId,
23122311
previousModeModelInfo,
23132312
previousModeThinkingBudgetTokens,
23142313
mcpMarketplaceEnabled,

0 commit comments

Comments
 (0)