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 <nate@continue.dev> Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev>
This commit is contained in:
parent
2fccf3a3be
commit
c391353709
1 changed files with 2 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ export const streamThunkWrapper = createAsyncThunk<
|
|||
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
||||
await dispatch(cancelStream());
|
||||
} else {
|
||||
await dispatch(cancelStream());
|
||||
dispatch(setDialogMessage(<StreamErrorDialog error={e} />));
|
||||
dispatch(setShowDialog(true));
|
||||
|
||||
|
|
@ -62,6 +63,7 @@ export const streamThunkWrapper = createAsyncThunk<
|
|||
};
|
||||
|
||||
posthog.capture("gui_stream_error", errorData);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue