diff --git a/web/context/UnifiedChatContext.tsx b/web/context/UnifiedChatContext.tsx index c2d2bd0fa..12bdd73aa 100644 --- a/web/context/UnifiedChatContext.tsx +++ b/web/context/UnifiedChatContext.tsx @@ -551,7 +551,7 @@ export function UnifiedChatProvider({ children }: { children: React.ReactNode }) dispatch({ type: "STREAM_END", key, status: "failed" }); return; } - const timerId = window.setTimeout(() => { + const timerId = setTimeout(() => { retryTimersRef.current.delete(timerId); dispatchToRunner(key, msg, attempt + 1); }, 200);