feat(DocumentManager): optimize document status monitoring

- Improve document status change detection by caching previous counts and properly handling null states.
- This ensures more accurate pipeline status updates.
This commit is contained in:
yangdx
2025-03-26 14:02:20 +08:00
parent 814f3b3308
commit 43ccb7d113
2 changed files with 38 additions and 3 deletions

View File

@@ -8,7 +8,8 @@ import {
AlertDialogContent,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogOverlay
AlertDialogOverlay,
AlertDialogDescription
} from '@/components/ui/AlertDialog'
import Button from '@/components/ui/Button'
import { getPipelineStatus, PipelineStatusResponse } from '@/api/lightrag'
@@ -144,6 +145,10 @@ export default function PipelineStatusDialog({
</Button>
</div>
</AlertDialogHeader>
<AlertDialogDescription>
{t('documentPanel.pipelineStatus.description')}
</AlertDialogDescription>
{/* Status Content */}
<div className="space-y-4 pt-4">