From c347c200b22ee09ff7e7e33b7aea18306dafbe05 Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Sat, 25 Jul 2026 01:36:28 +0800 Subject: [PATCH] fix: load pipeline stats in syncFileStatus and handle missing pipeline data Problem: - syncFileStatus() doesn't load pipeline progress data - Files stuck in 'processing' without percentage display - pollPipelineProgress() not started when pipeline data missing Solution: 1. Add loadPipelineStats() call in syncFileStatus() for processing files 2. Start pollPipelineProgress() even when pipeline data is missing 3. Ensure progress bar always has data to display Impact: - Progress bar now shows percentage during deep scan - Files no longer stuck in 'processing' state indefinitely - Better handling of edge cases when API data is missing Related: Core team needs to verify get_pipeline_stats API accuracy --- dist/index.html | 13 ------------- src/store.ts | 4 ++++ src/views/LibraryView.vue | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) delete mode 100644 dist/index.html diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index 3321334..0000000 --- a/dist/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - Momentry Studio - - - - -
- - diff --git a/src/store.ts b/src/store.ts index e47127f..c0a1e66 100644 --- a/src/store.ts +++ b/src/store.ts @@ -886,6 +886,10 @@ export async function syncFileStatus(fileUuid: string): Promise { delete fileProgressCache.value[fileUuid] } f.status = newStatus + + if (newStatus === 'processing') { + await loadPipelineStats(fileUuid, true) + } } } diff --git a/src/views/LibraryView.vue b/src/views/LibraryView.vue index 341eee1..f4dfdf1 100644 --- a/src/views/LibraryView.vue +++ b/src/views/LibraryView.vue @@ -786,7 +786,7 @@ async function loadFiles() { } else if (pipeline && pipeline.overall_progress >= 1.0) { f.status = 'completed' } else if (!pipeline && f.status === 'processing') { - f.status = 'registered' + pollPipelineProgress(f.file_uuid) } await loadFileStats(f.file_uuid, true)