diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts index e3af02500..52f06a4a8 100644 --- a/gui/src/components/mainInput/resolveInput.ts +++ b/gui/src/components/mainInput/resolveInput.ts @@ -194,7 +194,7 @@ async function resolveEditorContent({ } if (shouldGatherContext) { - dispatch(setIsGatheringContext(true)); + dispatch(setIsGatheringContext(false)); } return [contextItems, selectedCode, parts]; diff --git a/gui/src/redux/thunks/gatherContext.ts b/gui/src/redux/thunks/gatherContext.ts index 3e9202551..fa2c1ee3d 100644 --- a/gui/src/redux/thunks/gatherContext.ts +++ b/gui/src/redux/thunks/gatherContext.ts @@ -44,13 +44,6 @@ export const gatherContext = createAsyncThunk< } // Resolve context providers and construct new history - const shouldGatherContext = - modifiers.useCodebase || hasSlashCommandOrContextProvider(editorState); - - if (shouldGatherContext) { - dispatch(setIsGatheringContext(true)); - } - let [selectedContextItems, selectedCode, content] = await resolveEditorContent({ editorState,