Compare commits

...
Author SHA1 Message Date
celestial-vault fbf8f8aa53 changeset 2025-04-25 14:38:37 -07:00
celestial-vault 4e44b8e126 move plan/act to workspace state 2025-04-25 14:38:14 -07:00
4 changed files with 9 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
Move plan/act state to the workspace
+1 -1
View File
@@ -990,7 +990,7 @@ export class Controller {
}
}
await updateGlobalState(this.context, "chatSettings", chatSettings)
await updateWorkspaceState(this.context, "chatSettings", chatSettings)
await this.postStateToWebview()
if (this.task) {
+1 -2
View File
@@ -52,7 +52,6 @@ export type GlobalStateKey =
| "autoApprovalSettings"
| "globalClineRulesToggles"
| "browserSettings"
| "chatSettings"
| "vsCodeLmModelSelector"
| "userInfo"
| "previousModeApiProvider"
@@ -76,4 +75,4 @@ export type GlobalStateKey =
| "planActSeparateModelsSetting"
| "favoritedModelIds"
export type LocalStateKey = "localClineRulesToggles"
export type LocalStateKey = "localClineRulesToggles" | "chatSettings"
+2 -3
View File
@@ -101,7 +101,6 @@ export async function getAllExtensionState(context: vscode.ExtensionContext) {
taskHistory,
autoApprovalSettings,
browserSettings,
chatSettings,
vsCodeLmModelSelector,
liteLlmBaseUrl,
liteLlmModelId,
@@ -174,7 +173,6 @@ export async function getAllExtensionState(context: vscode.ExtensionContext) {
getGlobalState(context, "taskHistory") as Promise<HistoryItem[] | undefined>,
getGlobalState(context, "autoApprovalSettings") as Promise<AutoApprovalSettings | undefined>,
getGlobalState(context, "browserSettings") as Promise<BrowserSettings | undefined>,
getGlobalState(context, "chatSettings") as Promise<ChatSettings | undefined>,
getGlobalState(context, "vsCodeLmModelSelector") as Promise<vscode.LanguageModelChatSelector | undefined>,
getGlobalState(context, "liteLlmBaseUrl") as Promise<string | undefined>,
getGlobalState(context, "liteLlmModelId") as Promise<string | undefined>,
@@ -214,7 +212,8 @@ export async function getAllExtensionState(context: vscode.ExtensionContext) {
}
}
const localClineRulesToggles = (await getWorkspaceState(context, "localClineRulesToggles")) as ClineRulesToggles
const localClineRulesToggles = (await getWorkspaceState(context, "localClineRulesToggles")) as ClineRulesToggles | undefined
const chatSettings = (await getWorkspaceState(context, "chatSettings")) as ChatSettings | undefined
const o3MiniReasoningEffort = vscode.workspace.getConfiguration("cline.modelSettings.o3Mini").get("reasoningEffort", "medium")