fix(site): only play completion chime for top-level chat agents (#22623)

This commit is contained in:
Danielle Maywood
2026-03-04 21:17:11 +00:00
committed by GitHub
parent 9bd5a8d4e9
commit 93e5d04896
+9 -6
View File
@@ -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(