Skip to content

feat(macos27): notice when the system overflow takes the arrow - #488

Merged
tieubao merged 5 commits into
developfrom
feat/macos27-system-overflow
Nov 15, 2026
Merged

tieubao merged 5 commits into
developfrom
feat/macos27-system-overflow

Conversation

@tieubao

@tieubao tieubao commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

What

macOS 27 adds its own overflow button («, drawn by MenuBarAgent) when status items do not fit. On a full bar it can take the Hidden Bar arrow, which then looks like Hidden Bar stopped working. Direct build only: after a user collapse (click or hotkey), Hidden Bar checks whether its arrow went into « and, once, says how to reach it.

  • SystemOverflowIndicator: finds every « (one per display) in MenuBarAgent's Accessibility tree by AXIdentifier menu-bar-overflow-indicator / -expanded, read off the main thread.
  • isItemInSystemOverflow: an item is in « when its window is parked at (0,-30) with no screen, or its midpoint sits under a « while its window is not occlusion-visible.
  • SystemOverflowNotice: one-time alert, shown outside the dispatch block, only while still collapsed.
  • App Store build compiles none of it (HIDDENBAR_NATIVE_VISIBILITY).

What we learned about the system overflow

  • There is no setting to turn it off, and no API to pick which items go into it. The private NSStatusItem._setOverflowSpecifierPriority: changed nothing.
  • AXPress on the button opens and closes it.

Verification

  • scripts/test.sh: Hidden Bar 303 passed, App Store 210 passed.
  • Live, macOS 27.2.1, two displays: the detector classified 28 test items exactly as their own windows reported, on the right display.
  • Release-Direct build signed with Developer ID, run from /Applications with a filler app pinned visible: « appeared, the arrow stayed on the bar, no notice (negative control). The arrow-inside-« case did not reproduce on a 1600pt bar: macOS overflowed the newer filler icons first.
  • Independent review: no blockers; its seven findings are fixed in 2114d0e.

Not verified

  • The positive case on real hardware (needs a narrow bar, such as a 13" notched MacBook, with many visible apps).
  • Whether icons behind the notch also go into « on 27.

@tieubao
tieubao force-pushed the feat/macos27-system-overflow branch from fb589ae to cf59213 Compare November 15, 2026 18:10
@tieubao
tieubao marked this pull request as ready for review November 15, 2026 18:13
@tieubao
tieubao merged commit 97d6a23 into develop Nov 15, 2026
3 checks passed
@tieubao
tieubao deleted the feat/macos27-system-overflow branch November 15, 2026 18:17
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.

1 participant