From c391353709ad4367fb333680190e0ba73c868ef0 Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Tue, 9 Dec 2025 14:06:27 +0000 Subject: [PATCH] fix: add missing cancelStream call and return for non-retryable errors - Add cancelStream() call before showing error dialog for non-retryable errors - Add return statement to prevent loop continuation after handling non-retryable error Co-authored-by: nate Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- gui/src/redux/thunks/streamThunkWrapper.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/src/redux/thunks/streamThunkWrapper.tsx b/gui/src/redux/thunks/streamThunkWrapper.tsx index 1e032332c..2cf303065 100644 --- a/gui/src/redux/thunks/streamThunkWrapper.tsx +++ b/gui/src/redux/thunks/streamThunkWrapper.tsx @@ -51,6 +51,7 @@ export const streamThunkWrapper = createAsyncThunk< await new Promise((resolve) => setTimeout(resolve, delayMs)); await dispatch(cancelStream()); } else { + await dispatch(cancelStream()); dispatch(setDialogMessage()); dispatch(setShowDialog(true)); @@ -62,6 +63,7 @@ export const streamThunkWrapper = createAsyncThunk< }; posthog.capture("gui_stream_error", errorData); + return; } } }