From 7c7fd710473878bd5da879e617a78f72a43cad71 Mon Sep 17 00:00:00 2001 From: Nick Wolff Date: Mon, 28 Sep 2026 10:54:36 -0400 Subject: [PATCH] fix(tabs): keep machine details open with sessions - Disable closing the browser window while sessions are open - Prevent new sessions from starting without a tab - Restore closing once the last session closes --- App/SessionWindowManager.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/App/SessionWindowManager.swift b/App/SessionWindowManager.swift index cbe02b0..a39105a 100644 --- a/App/SessionWindowManager.swift +++ b/App/SessionWindowManager.swift @@ -119,6 +119,12 @@ final class SessionWindowManager: NSObject, NSWindowDelegate { showTabBarIfNeeded(on: window) } + // Only the browser window's bridge drives this manager. Closing it while + // sessions are open would leave every later session without a tab. + if browserWindow.styleMask.contains(.closable) != sessions.isEmpty { + browserWindow.styleMask.formSymmetricDifference(.closable) + } + if sessions.isEmpty { if !browserWindow.isVisible { browserWindow.makeKeyAndOrderFront(nil)