Skip to content

fix: toggle menu bar visibility on MacOS 27 Golden Gate - #1

Merged
granroth merged 1 commit into
granroth:mainfrom
caric:fix/menu-bar-icon-visibility
Aug 28, 2026
Merged

granroth merged 1 commit into
granroth:mainfrom
caric:fix/menu-bar-icon-visibility

Conversation

@caric

@caric caric commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

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.

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>
@granroth
granroth merged commit 608d564 into granroth:main Aug 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants