mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
ignore command and mcp asks with no text
This commit is contained in:
@@ -139,7 +139,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
|
|||||||
setSecondaryButtonText("Reject")
|
setSecondaryButtonText("Reject")
|
||||||
break
|
break
|
||||||
case "command":
|
case "command":
|
||||||
if (!isAutoApproved(lastMessage)) {
|
if (lastMessage.text && !isAutoApproved(lastMessage)) {
|
||||||
playSound("notification")
|
playSound("notification")
|
||||||
}
|
}
|
||||||
setTextAreaDisabled(isPartial)
|
setTextAreaDisabled(isPartial)
|
||||||
@@ -156,7 +156,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
|
|||||||
setSecondaryButtonText(undefined)
|
setSecondaryButtonText(undefined)
|
||||||
break
|
break
|
||||||
case "use_mcp_server":
|
case "use_mcp_server":
|
||||||
if (!isAutoApproved(lastMessage)) {
|
if (lastMessage.text && !isAutoApproved(lastMessage)) {
|
||||||
playSound("notification")
|
playSound("notification")
|
||||||
}
|
}
|
||||||
setTextAreaDisabled(isPartial)
|
setTextAreaDisabled(isPartial)
|
||||||
|
|||||||
Reference in New Issue
Block a user