+7
+33
−8
Loading
Users saw an alert reading "The operation couldn't be completed.
(Swift.CancellationError error 1.)". AppModel.load() reads the library
through GRDB, which cancels its database access when the calling task
is cancelled and throws CancellationError; load() showed any error as it
was. It is reached from work the system cancels: a background refresh
out of time (the alert then waits for the next launch), a pull to
refresh interrupted by leaving the screen.
load() now reads the library in a task of its own, so a cancelled caller
neither leaves it stale nor reports anything. Every error shown to the
user goes through report(_:_:), which skips cancellations
(CancellationError, NSURLErrorCancelled); the sync status keeps its last
message when a sync is cancelled.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>