Quellcode durchsuchen

Fix always allow read-only state

Saoud Rizwan vor 1 Jahr
Ursprung
Commit
ce208c8c8c
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 1 1
      package.json
  2. 3 3
      src/providers/ClaudeDevProvider.ts

+ 1 - 1
package.json

@@ -2,7 +2,7 @@
   "name": "claude-dev",
   "displayName": "Claude Dev",
   "description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
-  "version": "1.4.1",
+  "version": "1.4.11",
   "icon": "icon.png",
   "engines": {
     "vscode": "^1.84.0"

+ 3 - 3
src/providers/ClaudeDevProvider.ts

@@ -324,8 +324,8 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
 						await this.postStateToWebview()
 						break
 					case "alwaysAllowReadOnly":
-						await this.updateGlobalState("alwaysAllowReadOnly", message.bool || undefined)
-						this.claudeDev?.updateAlwaysAllowReadOnly(message.bool || undefined)
+						await this.updateGlobalState("alwaysAllowReadOnly", message.bool ?? undefined)
+						this.claudeDev?.updateAlwaysAllowReadOnly(message.bool ?? undefined)
 						await this.postStateToWebview()
 						break
 					case "askResponse":
@@ -681,7 +681,7 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
 			maxRequestsPerTask,
 			lastShownAnnouncementId,
 			customInstructions,
-			alwaysAllowReadOnly,
+			alwaysAllowReadOnly: alwaysAllowReadOnly ?? false,
 			taskHistory,
 			koduCredits,
 			shouldShowKoduPromo: shouldShowKoduPromo ?? true,