From d6e1895591767f2e4d96d0e15a94ee631ad65ca2 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 21 Oct 2026 21:19:20 -0700 Subject: [PATCH] Keep stale tab cleanup from discarding fresh Files/Changes loads --- mac/Sources/Byre/Changes.swift | 6 ------ mac/Sources/Byre/Files.swift | 6 ------ mac/Sources/Byre/Workflow.swift | 1 - 3 files changed, 13 deletions(-) diff --git a/mac/Sources/Byre/Changes.swift b/mac/Sources/Byre/Changes.swift index 735cf89..5ba575f 100644 --- a/mac/Sources/Byre/Changes.swift +++ b/mac/Sources/Byre/Changes.swift @@ -138,11 +138,6 @@ final class ChangesModel { } } - func stop() { - target += 1 - timer?.cancel() - } - func transcript(_ fresh: [ByreEvent]) { if pinned != nil { return @@ -234,7 +229,6 @@ struct ChangesView: View { } await untilCancelled() off?() - m.stop() } .onChange(of: store.pinned) { model?.retarget() diff --git a/mac/Sources/Byre/Files.swift b/mac/Sources/Byre/Files.swift index 40793ee..6d7b7a7 100644 --- a/mac/Sources/Byre/Files.swift +++ b/mac/Sources/Byre/Files.swift @@ -113,11 +113,6 @@ private final class FilesModel { } } - func stop() { - target += 1 - timer?.cancel() - } - func load() async { guard let taskId = store.selectedTaskId else { return @@ -206,7 +201,6 @@ struct FilesView: View { } await untilCancelled() off?() - m.stop() } } } diff --git a/mac/Sources/Byre/Workflow.swift b/mac/Sources/Byre/Workflow.swift index d96ead4..e6e96cc 100644 --- a/mac/Sources/Byre/Workflow.swift +++ b/mac/Sources/Byre/Workflow.swift @@ -136,7 +136,6 @@ struct WorkflowView: View { } await untilCancelled() off() - target += 1 } .onChange(of: task?.workflow) { if run == nil && !loading && error.isEmpty {