Skip to content

Commit 95222a9

Browse files
committed
add sounds to mcp server approval
1 parent 5e771cf commit 95222a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
156156
setSecondaryButtonText(undefined)
157157
break
158158
case "use_mcp_server":
159+
if (!isAutoApproved(lastMessage)) {
160+
playSound("notification")
161+
}
159162
setTextAreaDisabled(isPartial)
160163
setClineAsk("use_mcp_server")
161164
setEnableButtons(!isPartial)
@@ -552,6 +555,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
552555
case "followup":
553556
case "browser_action_launch":
554557
case "resume_task":
558+
case "use_mcp_server":
555559
playSound("notification")
556560
break
557561
case "completion_result":

0 commit comments

Comments
 (0)