Repository navigation
fix(native): treat apps run outside Applications as items macOS will not keep - #533
Merged
Merged
Conversation
…not keep macOS 27 hides an app whose menu bar process runs from outside an Applications folder although its bundle id is on the allow list. iStat Menus 7 runs its menu bar from ~/Library/Application Support through a LaunchAgent, so it vanished on collapse even in the visible section (#521). Measured on 27.0.1 and 27.2.1: the App Support copy is hidden when allowed, the /Applications copy is kept. Such an app in the visible section is now listed under "macOS 27 also hides" in Preferences, and with "Pause hiding while macOS shows..." on, a collapse keeps the bar whole while it sits right of the arrow, the same path the unkeepable system extras take. /System stays exempt.
sharingd runs from /usr/libexec and lists a menu bar item no one sees; seen on 27.0.1 in the 'also hides' list, and with pause on it would have kept the bar whole for good.
tieubao
force-pushed
the
fix/pinned-visible-collapse
branch
from
November 17, 2026 06:56
57dd576 to
1f2f127
Compare
tieubao
marked this pull request as ready for review
November 17, 2026 06:57
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.
What
On macOS 27, an app whose menu bar process runs from outside an Applications folder is hidden on collapse even when it sits right of the arrow. iStat Menus 7 is the reported case (#521): its LaunchAgent runs
iStat Menus Menubar.appfrom~/Library/Application Support/iStat Menus 7/.Hidden Bar already puts the bundle id on the allow list. macOS does not honour it for a copy run from there, the same way it hides Hidden Bar's own arrow when Hidden Bar runs outside
/Applications.This change treats such an app like the system extras macOS will not keep:
macOS's own processes (
/System,/usr,/Library/Apple) are exempt.sharingd(/usr/libexec) lists an item no one sees, and without the exemption it would block hiding for good.Evidence (private restriction probe, same call the engine makes)
~/Library/Application Support/iStat Menus 7//Applications/iStat Menus.app/...~/Library/Application Support/iStat Menus 7//Applications/iStat Menus.app/...Both measured versions hide it, so there is no extra version gate beyond the native engine's macOS 27 gate. 27.3 is untested.
Tests
/System,/usr,/Applicationsexempt), pause on keeps the bar whole, and with pause off hiding goes on and the app is listed.scripts/test.shin the mac-ui VM: Hidden Bar 679 passed / 0 failed, Hidden Bar App Store 445 / 0.Verified in a VM (hb-macos2701, macOS 27.0.1, iStat Menus 7.30 from Application Support)
Refs #521