From 5387f4b9aafe56454ad8c4db78444a29de6fa9f3 Mon Sep 17 00:00:00 2001 From: nang-dev Date: Thu, 7 Nov 2024 21:29:11 -0800 Subject: [PATCH] Added context for aider --- gui/src/components/mainInput/InputToolbar.tsx | 7 +++---- gui/src/integrations/aider/aidergui.tsx | 11 +++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 7cf7483470..9ec488bb64 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -25,7 +25,7 @@ import { isMetaEquivalentKeyPressed, } from "../../util"; import ModelSelect from "../modelSelection/ModelSelect"; -import { isBareChatMode, isPerplexityMode } from "../../util/bareChatMode"; +import { isBareChatMode, isPerplexityMode, isAiderMode} from "../../util/bareChatMode"; import { setDefaultModel } from "../../redux/slices/stateSlice"; import { RootState } from "@/redux/store"; import { useLocation } from "react-router-dom"; @@ -97,6 +97,7 @@ function InputToolbar(props: InputToolbarProps) { const defaultModel = useSelector(defaultModelSelector); const bareChatMode = isBareChatMode(); const perplexityMode = isPerplexityMode(); + const aiderMode = isAiderMode(); const useActiveFile = useSelector(selectUseActiveFile); const allModels = useSelector( @@ -128,9 +129,8 @@ function InputToolbar(props: InputToolbarProps) { id="input-toolbar" > - {!bareChatMode && ( <> - {!perplexityMode && } + {!aiderMode && !perplexityMode && } { props.onAddContextItem(); @@ -141,7 +141,6 @@ function InputToolbar(props: InputToolbarProps) { - )} {defaultModel && modelSupportsImages( defaultModel.provider, diff --git a/gui/src/integrations/aider/aidergui.tsx b/gui/src/integrations/aider/aidergui.tsx index 2e08957c75..042c087608 100644 --- a/gui/src/integrations/aider/aidergui.tsx +++ b/gui/src/integrations/aider/aidergui.tsx @@ -216,15 +216,15 @@ function AiderGUI() { to use PearAI Creator. ); - } + } if (aiderProcessState.state === "stopped") { msg = ( <> PearAI Creator (Powered By aider) process is not running. Please view{" "} - troubleshooting @@ -480,7 +480,6 @@ const tutorialContent = { copyText: "Make a new FAQ page for my website", }, moreInfo: [ - "- Type '@' to add file context to your request.", "- Ignore system ```<<< SEARCH REPLACE >>>``` messages. These are for the system to make edits for you automatically." ] }