diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts index 8582fd9de..77e7543d8 100644 --- a/core/indexing/docs/DocsService.ts +++ b/core/indexing/docs/DocsService.ts @@ -157,7 +157,8 @@ export default class DocsService { const currentStatus = this.statuses.get(doc.startUrl); if (currentStatus) { - return currentStatus; + this.handleStatusUpdate(currentStatus); + return; } const sharedStatus = { diff --git a/gui/src/components/indexing/DocsIndexingStatus.tsx b/gui/src/components/indexing/DocsIndexingStatus.tsx index fe64ae2dc..c9d2a9076 100644 --- a/gui/src/components/indexing/DocsIndexingStatus.tsx +++ b/gui/src/components/indexing/DocsIndexingStatus.tsx @@ -87,11 +87,11 @@ function DocsIndexingStatus({ docConfig }: IndexingStatusViewerProps) { const Icon = STATUS_TO_ICON[status?.status]; const showProgressPercentage = progressPercentage !== "100"; + console.log("STatus for " + docConfig.title, status); if (hasDeleted) return null; return (
- {/* {`${status.type} - ${status.id} - ${status.status} - ${status.progress} - ${status.description} - ${status.icon}`} */}
diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts index 582c962ad..142b8de4d 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/useSetup.ts @@ -242,6 +242,7 @@ function useSetup() { }); useWebviewListener("indexing/statusUpdate", async (data) => { + debugger; dispatch(updateIndexingStatus(data)); });