diff --git a/NucleicRemote/NucleicRemote/LiveActivityManager.swift b/NucleicRemote/NucleicRemote/LiveActivityManager.swift index 7831ce0..25bd6e8 100644 --- a/NucleicRemote/NucleicRemote/LiveActivityManager.swift +++ b/NucleicRemote/NucleicRemote/LiveActivityManager.swift @@ -15,6 +15,13 @@ final class LiveActivityManager { /// still summarize everything, this just bounds the per-session list. private static let maxLines = 3 + /// How long the terminal "all clear / Done" glance lingers before the Activity dismisses. Long + /// enough to read at a glance, short enough not to loiter on the lock screen. + private static let doneLinger: Duration = .seconds(4) + /// The delayed dismissal after the Done glance is shown, cancelled if work resumes first — so a + /// completed run flashes "Done" and then clears instead of vanishing the instant it finishes. + private var dismissTask: Task? + private var activity: Activity? /// The last content we pushed. Updates that don't change it are skipped so we don't spend