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( const prevStatus = currentChats?.find(
(c) => c.id === updatedChat.id, (c) => c.id === updatedChat.id,
)?.status; )?.status;
maybePlayChime( // Only play the chime for top-level chats, not sub-agents.
prevStatus, if (!updatedChat.parent_chat_id) {
updatedChat.status, maybePlayChime(
updatedChat.id, prevStatus,
activeChatIDRef.current, updatedChat.status,
); updatedChat.id,
activeChatIDRef.current,
);
}
if (chatEvent.kind === "deleted") { if (chatEvent.kind === "deleted") {
queryClient.setQueryData( queryClient.setQueryData(