Revert "Fix launch compatibility on macOS 14 and 15"#787
Conversation
This reverts commit 41323ac.
| ) | ||
| } | ||
| .menuBarExtraStyle(.window) | ||
| } |
There was a problem hiding this comment.
Menu Scene Crashes Baseline Launch
The app still targets macOS 14.0, but this restores the MenuBarExtra(.window) scene as the main launch path. The reverted AppKit path existed because an Xcode 26-built .window menu extra can abort inside AttributeGraph on macOS 14 and early macOS 15 before applicationDidFinishLaunching runs, so supported users can crash on launch with no recovery window or status item.
| @@ -153,23 +131,11 @@ final class AppDelegate: NSObject, NSApplicationDelegate { | |||
|
|
|||
There was a problem hiding this comment.
The -cotabby-compatibility-smoke-test argument is no longer checked before normal startup. A compatibility runner that launches the built app with that flag now enters full app startup and stays open instead of constructing the menu graph and exiting cleanly, so the launch check times out rather than reporting success or failure.
Reverts #785
Greptile Summary
This PR reverts the macOS compatibility fix and moves the app back to SwiftUI-owned menu-bar presentation. The main changes are:
Appentry point andMenuBarExtra(.window)scene.MenuBarControllerstatus-item implementation.Confidence Score: 4/5
The macOS 14/15 launch path can crash before the app delegate can recover.
MenuBarExtra(.window)path is the same baseline launch path the reverted AppKit implementation avoided.Cotabby/App/Core/CotabbyApp.swift, Cotabby/App/Core/AppDelegate.swift, Cotabby/Support/SuggestionSettingsStore.swift
Important Files Changed
MenuBarExtra(.window)scene, reintroducing the macOS baseline launch risk.NSStatusItemandNSPopovercontroller used for menu-bar lifecycle ownership.Comments Outside Diff (1)
Cotabby/Support/SuggestionSettingsStore.swift, line 159-220 (link)The menu-bar visibility key is still omitted from the reset key list while the new scene insertion reads that same key directly through
@AppStorage. If a user hides the icon and then resets preferences, the persistedcotabbyMenuBarIconVisible = falsesurvives, so the app remains without a menu-bar item instead of restoring the default visible state.Reviews (1): Last reviewed commit: "Revert "Fix launch compatibility on macO..." | Re-trigger Greptile