From 06753c7748d3e32c5b23905e0ccfacb674005e1b Mon Sep 17 00:00:00 2001 From: Daniel Anderson Date: Thu, 30 Jul 2026 00:14:17 -0600 Subject: [PATCH] Fix rageshake upload progress bar The Swift 6 migration consumed the KVO progress publisher through its AsyncSequence, which wants one value at a time. Progress updates that arrive while the loop is busy are dropped, the buffer holds onto the latest one until the loop is ready for it. Signed-off-by: Daniel Anderson --- ElementX/Sources/Services/BugReport/BugReportService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/BugReport/BugReportService.swift b/ElementX/Sources/Services/BugReport/BugReportService.swift index 60d767767..8ee57864a 100644 --- a/ElementX/Sources/Services/BugReport/BugReportService.swift +++ b/ElementX/Sources/Services/BugReport/BugReportService.swift @@ -296,7 +296,7 @@ nonisolated extension BugReportService: URLSessionTaskDelegate { /// where the service lives. func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) { Task { @MainActor [weak self] in - for await value in task.progress.publisher(for: \.fractionCompleted).values { + for await value in task.progress.publisher(for: \.fractionCompleted).buffer(size: 1, prefetch: .byRequest, whenFull: .dropOldest).values { self?.progressSubject.send(value) } }