From 93e5d04896ee6533129ea29d2dbe7cc3b9b615fd Mon Sep 17 00:00:00 2001 From: Danielle Maywood Date: Wed, 4 Mar 2026 21:17:11 +0000 Subject: [PATCH] fix(site): only play completion chime for top-level chat agents (#22623) --- site/src/pages/AgentsPage/AgentsPage.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/site/src/pages/AgentsPage/AgentsPage.tsx b/site/src/pages/AgentsPage/AgentsPage.tsx index 86f56cff02..a699ab3b3c 100644 --- a/site/src/pages/AgentsPage/AgentsPage.tsx +++ b/site/src/pages/AgentsPage/AgentsPage.tsx @@ -390,12 +390,15 @@ const AgentsPage: FC = () => { const prevStatus = currentChats?.find( (c) => c.id === updatedChat.id, )?.status; - maybePlayChime( - prevStatus, - updatedChat.status, - updatedChat.id, - activeChatIDRef.current, - ); + // Only play the chime for top-level chats, not sub-agents. + if (!updatedChat.parent_chat_id) { + maybePlayChime( + prevStatus, + updatedChat.status, + updatedChat.id, + activeChatIDRef.current, + ); + } if (chatEvent.kind === "deleted") { queryClient.setQueryData(