fix(ui): poll import task list during active batch so Recent Import Tasks doesn't sit stale

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-23 21:12:17 -04:00
parent f5efbea053
commit 6acf273267
+6 -1
View File
@@ -57,7 +57,12 @@ function startPolling() {
pollId = setInterval(() => {
if (!document.hidden) {
system.refreshStats()
if (tab.value === 'import') importStore.refreshStatus()
if (tab.value === 'import') {
importStore.refreshStatus()
// Refresh the task list while a batch is in flight so the UI
// doesn't sit stale next to a ticking imported/skipped counter.
if (importStore.activeBatch) importStore.loadTasks(true)
}
}
}, 5000)
}