From 88a004ca1ea728e50452caf24a7a631350341b54 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 12:45:08 -0700 Subject: [PATCH] iOS Live Activity Updates Nucleic-Session: 665980BA-E8A5-4E84-9DF4-1757CF792353 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/LiveActivityManager.swift | 7 +++++++ 1 file changed, 7 insertions(+) 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