From ff70ea76339cf25e54051c758907f1838366bd41 Mon Sep 17 00:00:00 2001 From: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Date: Thu, 27 Aug 2026 02:27:14 -0300 Subject: [PATCH] security(video): propagate stream retention context --- open-sse/handlers/chatCore.ts | 1 + open-sse/utils/streamFailureFinalization.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/open-sse/handlers/chatCore.ts b/open-sse/handlers/chatCore.ts index 07fa771f50..c1c7a437a4 100644 --- a/open-sse/handlers/chatCore.ts +++ b/open-sse/handlers/chatCore.ts @@ -5632,6 +5632,7 @@ export async function handleChatCore({ status: normalizedStreamStatus, error: streamError, errorCode: streamErrorCode, + videoTranscriptSensitive, }); // Track cache token metrics for streaming responses diff --git a/open-sse/utils/streamFailureFinalization.ts b/open-sse/utils/streamFailureFinalization.ts index 84501c5b40..e1d00f5564 100644 --- a/open-sse/utils/streamFailureFinalization.ts +++ b/open-sse/utils/streamFailureFinalization.ts @@ -92,7 +92,7 @@ export function finalizeStreamRequestLog({ status, error, errorCode, - videoTranscriptSensitive = false, + videoTranscriptSensitive, onWarn, }: { pendingRequestId: string; @@ -104,7 +104,7 @@ export function finalizeStreamRequestLog({ status: number; error?: string | null; errorCode?: string | null; - videoTranscriptSensitive?: boolean; + videoTranscriptSensitive: boolean; onWarn?: (error: unknown) => void; }) { try {