add sounds to mcp server approval

This commit is contained in:
Justin Quan
2024-12-15 23:47:10 -08:00
parent 5e771cf783
commit 95222a9a5d

View File

@@ -156,6 +156,9 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
setSecondaryButtonText(undefined) setSecondaryButtonText(undefined)
break break
case "use_mcp_server": case "use_mcp_server":
if (!isAutoApproved(lastMessage)) {
playSound("notification")
}
setTextAreaDisabled(isPartial) setTextAreaDisabled(isPartial)
setClineAsk("use_mcp_server") setClineAsk("use_mcp_server")
setEnableButtons(!isPartial) setEnableButtons(!isPartial)
@@ -552,6 +555,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
case "followup": case "followup":
case "browser_action_launch": case "browser_action_launch":
case "resume_task": case "resume_task":
case "use_mcp_server":
playSound("notification") playSound("notification")
break break
case "completion_result": case "completion_result":