diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts index 1ee6ed86a..febf7adb0 100644 --- a/gui/src/components/mainInput/resolveInput.ts +++ b/gui/src/components/mainInput/resolveInput.ts @@ -191,7 +191,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 4129868ef..7f59a0547 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,