From 95222a9a5dd4cb96ed8edc61a63e09d1f68c1566 Mon Sep 17 00:00:00 2001 From: Justin Quan Date: Sun, 15 Dec 2024 23:47:10 -0800 Subject: [PATCH] add sounds to mcp server approval --- webview-ui/src/components/chat/ChatView.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 777425e..a959cdb 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -156,6 +156,9 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setSecondaryButtonText(undefined) break case "use_mcp_server": + if (!isAutoApproved(lastMessage)) { + playSound("notification") + } setTextAreaDisabled(isPartial) setClineAsk("use_mcp_server") setEnableButtons(!isPartial) @@ -552,6 +555,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie case "followup": case "browser_action_launch": case "resume_task": + case "use_mcp_server": playSound("notification") break case "completion_result":