Skip to content

Commit 4eebcf0

Browse files
fix: prevent notification sound on attempt_completion with queued messages (#8540)
Co-authored-by: Roo Code <[email protected]>
1 parent b17760b commit 4eebcf0

File tree

2 files changed

+524
-1
lines changed

2 files changed

+524
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
380380
break
381381
case "completion_result":
382382
// extension waiting for feedback. but we can just present a new task button
383-
if (!isPartial) {
383+
// Only play celebration sound if there are no queued messages
384+
if (!isPartial && messageQueue.length === 0) {
384385
playSound("celebration")
385386
}
386387
setSendingDisabled(isPartial)

0 commit comments

Comments
 (0)