Compare commits

...

2 Commits

Author SHA1 Message Date
Cline Evaluation c732fe9480 Fix: Temporary revert protobus changes for Toggle plan and act mode 2025-05-21 05:04:04 +04:00
Cline Evaluation 72fd6f5e11 Fix: Temporary revert protobus changes for Toggle plan and act mode 2025-05-21 05:02:14 +04:00
5 changed files with 15 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Fixing bug in toggle plan and act
+5
View File
@@ -305,6 +305,11 @@ export class Controller {
}
}
break
case "togglePlanActMode":
if (message.chatSettings) {
await this.togglePlanActModeWithChatSettings(message.chatSettings, message.chatContent)
}
break
case "optionsResponse":
await this.postMessageToWebview({
type: "invoke",
+1
View File
@@ -20,6 +20,7 @@ export interface WebviewMessage {
| "refreshClineRules"
| "openMcpSettings"
| "autoApprovalSettings"
| "togglePlanActMode"
| "openExtensionSettings"
| "requestVsCodeLmModels"
| "showAccountViewClicked"
@@ -966,7 +966,8 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
}
setTimeout(() => {
const newMode = chatSettings.mode === "plan" ? "act" : "plan"
StateServiceClient.togglePlanActMode({
vscode.postMessage({
type: "togglePlanActMode",
chatSettings: {
mode: newMode,
},
@@ -115,7 +115,8 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
switch (message.type) {
case "didUpdateSettings":
if (pendingTabChange) {
StateServiceClient.togglePlanActMode({
vscode.postMessage({
type: "togglePlanActMode",
chatSettings: {
mode: pendingTabChange,
},