diff --git a/core/core.ts b/core/core.ts index 519b4c755..e943e7a7d 100644 --- a/core/core.ts +++ b/core/core.ts @@ -380,10 +380,6 @@ export class Core { ); let next = await gen.next(); while (!next.done) { - if (Math.random() > 0) { - // - // throw new Error("Intentional"); - } if (abortedMessageIds.has(msg.messageId)) { abortedMessageIds.delete(msg.messageId); next = await gen.return({ diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 85cdebdb4..f15648eec 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -117,13 +117,9 @@ export const sessionSlice = createSlice({ return; } const lastMessage = state.history[state.history.length - 1]; - console.log("CLEARING LAST EMPTY RESPONSE", { ...lastMessage }); // Only clear in the case of an empty message if (!lastMessage.message.content.length) { - console.log("CLEARING", { - ...state.history[state.history.length - 2].editorState, - }); state.mainEditorContentTrigger = state.history[state.history.length - 2].editorState; state.history = state.history.slice(0, -2); diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index 88df9d65f..aec7bb38e 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -5,7 +5,6 @@ import { selectDefaultModel } from "../slices/configSlice"; import { abortStream, addPromptCompletionPair, - clearLastEmptyResponse, setToolGenerated, streamUpdate, } from "../slices/sessionSlice"; diff --git a/gui/src/redux/thunks/streamThunkWrapper.ts b/gui/src/redux/thunks/streamThunkWrapper.ts index 39c41a5f1..da67b2814 100644 --- a/gui/src/redux/thunks/streamThunkWrapper.ts +++ b/gui/src/redux/thunks/streamThunkWrapper.ts @@ -11,7 +11,7 @@ export const streamThunkWrapper = createAsyncThunk< await runStream(); } catch (e: any) { // NOTE - streaming errors are shown as ide toasts in core, don't show duplicate here - // console.debug("Error streaming response: ", e); + console.debug("Error streaming response: ", e); dispatch(clearLastEmptyResponse()); } finally { dispatch(setInactive());