diff --git a/src/pages/ExportPage.tsx b/src/pages/ExportPage.tsx index 8aa55ea..c12ef10 100644 --- a/src/pages/ExportPage.tsx +++ b/src/pages/ExportPage.tsx @@ -871,6 +871,13 @@ const TaskCenterModal = memo(function TaskCenterModal({ const normalizedProgressCurrent = normalizedProgressTotal > 0 ? Math.max(0, Math.min(normalizedProgressTotal, task.progress.current)) : 0 + const completedSessionTotal = normalizedProgressTotal > 0 + ? normalizedProgressTotal + : task.payload.sessionIds.length + const completedSessionCount = Math.min( + completedSessionTotal, + (task.settledSessionIds || []).length + ) const currentSessionRatio = task.progress.phaseTotal > 0 ? Math.max(0, Math.min(1, task.progress.phaseProgress / task.progress.phaseTotal)) : null @@ -891,8 +898,8 @@ const TaskCenterModal = memo(function TaskCenterModal({ />