From 7f447188b50d77b2240ea991162fbfaf144921b7 Mon Sep 17 00:00:00 2001 From: avi Date: Mon, 14 Sep 2026 10:24:52 -0500 Subject: [PATCH] Desktop: upload-path transcribe mirrors live progress to library rows --- .../app/src/main/kotlin/com/shonar/desktop/DesktopState.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt b/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt index e8953de..2b146bf 100644 --- a/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt +++ b/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt @@ -842,10 +842,17 @@ class DesktopState(private val appDir: File = defaultAppDir()) { .orEmpty() d.jobs = jobs jobLabel(jobs)?.let { d.busy = it } + // Mirror live progress onto the library row (same as the + // pump + reprocess paths) so leaving the detail screen + // doesn't make the job look dead. + setLive(d.file.name, jobProgress(jobs)) + rescanStatuses() _detail.value = d.copy() val t = jobs.firstOrNull { it.jobType == "transcribe" }?.status if (t == null || t in TERMINAL) break } + setLive(d.file.name, null) + rescanStatuses() val failed = d.jobs.firstOrNull { it.jobType == "transcribe" && it.status == "failed" } if (failed != null) { d.busy = null