From 02854441e90350d76cb2db9765a984e18f75e7b6 Mon Sep 17 00:00:00 2001 From: Lawrence Chen Date: Fri, 13 Mar 2026 16:03:07 -0700 Subject: [PATCH] Clear split zoom when jumping to unread --- Sources/TabManager.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/TabManager.swift b/Sources/TabManager.swift index fc3b596c..2556f229 100644 --- a/Sources/TabManager.swift +++ b/Sources/TabManager.swift @@ -2205,12 +2205,16 @@ class TabManager: ObservableObject { func focusTabFromNotification(_ tabId: UUID, surfaceId: UUID? = nil) { let wasSelected = selectedTabId == tabId - let desiredPanelId = surfaceId ?? tabs.first(where: { $0.id == tabId })?.focusedPanelId + guard let tab = tabs.first(where: { $0.id == tabId }) else { return } + let desiredPanelId = surfaceId ?? tab.focusedPanelId #if DEBUG if let desiredPanelId { AppDelegate.shared?.armJumpUnreadFocusRecord(tabId: tabId, surfaceId: desiredPanelId) } #endif + // Jump-to-unread should reveal the destination pane instead of keeping an old split-zoom + // state active around it. + tab.clearSplitZoom() suppressFocusFlash = true focusTab(tabId, surfaceId: desiredPanelId, suppressFlash: true) if wasSelected {