From 2734f481d148901f2b8ce231a9f2976ee233d0ab Mon Sep 17 00:00:00 2001 From: "Bingxi Zhao (Frank)" <13051345080@163.com> Date: Sat, 11 Apr 2026 16:19:14 +0800 Subject: [PATCH] fix: resolve Docker build type error in setTimeout return type Use `setTimeout` instead of `window.setTimeout` to match the `ReturnType` generic in retryTimersRef, fixing the "number is not assignable to Timeout" compilation error. Made-with: Cursor --- web/context/UnifiedChatContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);