Skip to content

Commit d5524e7

Browse files
Fix MCP auto approve toggle [2/2] (RooCodeInc#2729)
* fix state out of sync * changeset * remove event.isTrusted check * changeset
1 parent 5212582 commit d5524e7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/red-worms-turn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Fix tool toggle auto approve

webview-ui/src/components/mcp/configuration/tabs/installed/server-row/McpToolRow.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ const McpToolRow = ({ tool, serverName }: McpToolRowProps) => {
1414
// Accept the event object
1515
const handleAutoApproveChange = (event: any) => {
1616
// Only proceed if the event was triggered by a direct user interaction
17-
if (!serverName || !event.isTrusted) return
17+
18+
if (!serverName) {
19+
return
20+
}
1821

1922
vscode.postMessage({
2023
type: "toggleToolAutoApprove",

0 commit comments

Comments
 (0)