Repository navigation
fix: toggle menu bar visibility on MacOS 27 Golden Gate - #1
Merged
Merged
Conversation
NSStatusItem's visibility is persisted by the system under its autosaveName, independent of whether the in-process item object still exists. Escapement never set an explicit autosaveName and never called isVisible = true after creating the item, so once anything set that persisted bit to hidden, the checkbox in Settings could never show the icon again — install() only guards against re-creating an item that already exists, it never re-asserts visibility on it. This used to be reachable only via a ⌘-drag removal, which Escapement deliberately opted out of via NSStatusItemBehavior. macOS's newer system-level "show in menu bar" toggle (System Settings > Menu Bar) flips the same persisted bit directly, bypassing that opt-out entirely, so the gap is now easy to hit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NSStatusItem's visibility is persisted by the system under its autosaveName, independent of whether the in-process item object still exists. Escapement never set an explicit autosaveName and never called isVisible = true after creating the item, so once anything set that persisted bit to hidden, the "Show Escapement in the menu bar" checkbox could never bring it back — install() only guards against re-creating an item that already exists, it never re-asserts visibility on it.
This used to be reachable only via a ⌘-drag removal, which Escapement deliberately opted out of via NSStatusItemBehavior. macOS's newer system-level "show in menu bar" toggle (System Settings → Menu Bar) flips the same persisted bit directly, bypassing that opt-out entirely, so the gap became easy to hit.
Verified live on both macOS 27 beta and macOS 26.6.2 stable — toggling the checkbox now reliably shows/hides the icon on both.