= {
complete: CheckCircleIcon,
aborted: null,
pending: null,
- failed: XMarkIcon, // Since we show an error message below
+ failed: ExclamationTriangleIcon, // Since we show an error message below
};
function DocsIndexingStatus({ docConfig }: IndexingStatusViewerProps) {
diff --git a/gui/src/components/indexing/DocsIndexingStatuses.tsx b/gui/src/components/indexing/DocsIndexingStatuses.tsx
index 76feb21e0..445c4db93 100644
--- a/gui/src/components/indexing/DocsIndexingStatuses.tsx
+++ b/gui/src/components/indexing/DocsIndexingStatuses.tsx
@@ -16,8 +16,7 @@ function DocsIndexingStatuses() {
@docs indexes
{configDocs.length ? (
{
dispatch(setShowDialog(true));
dispatch(setDialogMessage());
@@ -32,10 +31,11 @@ function DocsIndexingStatuses() {
? "Manage your documentation sources"
: "No docs yet"}
-
+
{configDocs.length === 0 && (
{
dispatch(setShowDialog(true));
dispatch(setDialogMessage());
diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts
index febf7adb0..9c5107d1b 100644
--- a/gui/src/components/mainInput/resolveInput.ts
+++ b/gui/src/components/mainInput/resolveInput.ts
@@ -114,7 +114,6 @@ async function resolveEditorContent({
}
const shouldGatherContext = modifiers.useCodebase || slashCommand;
-
if (shouldGatherContext) {
dispatch(setIsGatheringContext(true));
}
@@ -189,7 +188,6 @@ async function resolveEditorContent({
parts = [{ type: "text", text: lastPart }];
}
}
-
if (shouldGatherContext) {
dispatch(setIsGatheringContext(false));
}
diff --git a/gui/src/components/markdown/FilenameLink.tsx b/gui/src/components/markdown/FilenameLink.tsx
index 4e4d934e9..6ff704cc0 100644
--- a/gui/src/components/markdown/FilenameLink.tsx
+++ b/gui/src/components/markdown/FilenameLink.tsx
@@ -32,6 +32,7 @@ function FilenameLink({ rif }: FilenameLinkProps) {
<>
diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx
index 781d712db..fea1d2992 100644
--- a/gui/src/pages/gui/Chat.tsx
+++ b/gui/src/pages/gui/Chat.tsx
@@ -233,8 +233,8 @@ export function Chat() {
(
editorState: JSONContent,
modifiers: InputModifiers,
- editor: Editor,
index?: number,
+ editorToClearOnSend?: Editor,
) => {
if (defaultModel?.provider === "free-trial") {
const u = getLocalStorage("ftc");
@@ -268,7 +268,9 @@ export function Chat() {
streamResponseThunk({ editorState, modifiers, promptPreamble, index }),
);
- editor.commands.clearContent(true);
+ if (editorToClearOnSend) {
+ editorToClearOnSend.commands.clearContent();
+ }
// Increment localstorage counter for popup
const currentCount = getLocalStorage("mainTextEntryCounter");
@@ -381,8 +383,8 @@ export function Chat() {
{isInEditMode && index === 0 && }
- sendInput(editorState, modifiers, editor, index)
+ onEnter={(editorState, modifiers) =>
+ sendInput(editorState, modifiers, index)
}
isLastUserInput={isLastUserInput(index)}
isMainInput={false}
@@ -487,7 +489,9 @@ export function Chat() {
isMainInput
isEditMode={isInEditMode}
isLastUserInput={false}
- onEnter={sendInput}
+ onEnter={(editorState, modifiers, editor) =>
+ sendInput(editorState, modifiers, undefined, editor)
+ }
/>
)}