diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts
index 83e51bb6f..a6f8e5c2b 100644
--- a/core/indexing/docs/DocsService.ts
+++ b/core/indexing/docs/DocsService.ts
@@ -41,6 +41,7 @@ import {
} from "./preIndexed";
import preIndexedDocs from "./preIndexedDocs";
import { ConfigResult } from "@continuedev/config-yaml";
+import { GlobalContext } from "../../util/GlobalContext";
// Purposefully lowercase because lancedb converts
export interface LanceDbDocsRow {
@@ -908,19 +909,24 @@ export default class DocsService {
}
}
} else {
- const currentStatus = this.statuses.get(doc.startUrl);
- if (currentStatus?.status !== "failed") {
- newDocs.push(doc);
- }
+ newDocs.push(doc);
}
}
+ const globalContext = new GlobalContext();
+ const failedDocs = globalContext.get("failedDocs") ?? [];
+
+ const newDocsNotFailed = newDocs.filter(
+ (doc) =>
+ !failedDocs.find((d) => this.siteIndexingConfigsAreEqual(doc, d)),
+ );
+
await Promise.allSettled([
...changedDocs.map((doc) => this.indexAndAdd(doc, true)),
- ...newDocs.map((doc) => this.indexAndAdd(doc)),
+ ...newDocsNotFailed.map((doc) => this.indexAndAdd(doc)),
]);
- for (const doc of newDocs) {
+ for (const doc of newDocsNotFailed) {
void Telemetry.capture("add_docs_config", { url: doc.startUrl });
}
diff --git a/core/util/GlobalContext.ts b/core/util/GlobalContext.ts
index aa1b66fcf..121c45946 100644
--- a/core/util/GlobalContext.ts
+++ b/core/util/GlobalContext.ts
@@ -7,6 +7,7 @@ import {
} from "../config/sharedConfig";
import { getGlobalContextFilePath } from "./paths";
+import { SiteIndexingConfig } from "..";
export type GlobalContextType = {
indexingPaused: boolean;
@@ -27,6 +28,7 @@ export type GlobalContextType = {
showConfigUpdateToast: boolean;
isSupportedLanceDbCpuTarget: boolean;
sharedConfig: SharedConfigSchema;
+ failedDocs: SiteIndexingConfig[];
};
/**
diff --git a/gui/src/components/indexing/DocsDetailsDialog.tsx b/gui/src/components/indexing/DocsDetailsDialog.tsx
index 7b824291a..f8d0a54e9 100644
--- a/gui/src/components/indexing/DocsDetailsDialog.tsx
+++ b/gui/src/components/indexing/DocsDetailsDialog.tsx
@@ -127,25 +127,36 @@ function DocsDetailsDialog({ startUrl }: DocsDetailsDialogProps) {
-
- {chunk.filepath}
-
-
- {chunk.content}
-
>
);
})}
+ {/* Rending tooltips here because div can't be child of tbody apparently */}
+ {data.chunks.map((chunk, i) => {
+ const contentToolTipId = `docs-content-peek-${i}`;
+ const urlToolTipId = `docs-url-peek-${i}`;
+ return (
+ <>
+
+ {chunk.filepath}
+
+
+ {chunk.content}
+
+ >
+ );
+ })}
)}