From faec509a33f8fb76e9fcfbc5e847576e12f8c730 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Mon, 9 Feb 2026 14:22:53 -0500 Subject: [PATCH] fix: invalidate transcript query on STATUS websocket event Without this, the page never redirects to /processing when a reprocess changes status from ended->processing, because the redirect logic only watches the REST query data, not the WebSocket status state. --- www/app/(app)/transcripts/useWebSockets.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/www/app/(app)/transcripts/useWebSockets.ts b/www/app/(app)/transcripts/useWebSockets.ts index 0de0dd1d..c2f792c0 100644 --- a/www/app/(app)/transcripts/useWebSockets.ts +++ b/www/app/(app)/transcripts/useWebSockets.ts @@ -436,6 +436,7 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => { ); } setStatus(message.data); + invalidateTranscript(queryClient, transcriptId as NonEmptyString); if (message.data.value === "ended") { ws.close(); }