Repository navigation
Description
What happens
On a notched MacBook with a crowded menu bar, macOS parks the OpenUsage status item underneath the notch. The app keeps running and the log happily reports [statusitem] Status item ready (button: true, …), but there is nothing to see or click anywhere — to the user, OpenUsage simply never launched. Relaunching doesn't help; the item lands in the same spot every time.
Before (item exists at x 767–937, notch spans 791–1012 — the strip is invisible, the gap in the middle is the notch):
Environment
- OpenUsage 0.7.4 (reproduced on
maindev builds too) - macOS 26.5.2 (25F84), MacBook Pro 14" (logical 1800×1169, notch x 791–1012 per
auxiliaryTopLeftArea/auxiliaryTopRightArea) - No menu bar manager (Bartender/Ice) involved
Root cause (measured, not guessed)
macOS lays status items out right-to-left; the item's right edge is pinned by its neighbors. Once the right-of-notch area fills up, the leftmost third-party item overflows under the notch. Measured via the Accessibility API:
| Icon style | Measured frame | Visible |
|---|---|---|
| Text (170 pt) | x 767–937 | 24 pt sliver |
| Bars (36 pt) | x 902–938 | 0 pt |
Two dead ends worth recording:
- Shrinking the item can never fix it: the right edge (≈937, inside the notch) is dictated by the neighbors, so narrowing only moves the left edge rightward — the measured bars style (36 pt) is more hidden than the text strip.
- There is no public API to reposition an
NSStatusItem.
Proposed fix (implemented, works — PR ready)
Three layers, all driven by one tested pure-geometry check (auxiliaryTop*Area vs the button's screen rect, occluded when ≥75% hidden):
-
Self-rescue (primary) — rewrite the item's remembered position (the same
NSStatusItem Preferred Positiondefault that ⌘-dragging maintains) so it re-lands just right of the notch, and bounceautosaveNameso AppKit re-reads it. Verified live on macOS 26.5: a 99%-hidden item moved back into the visible menu bar. -
Surrogate button (fallback) — the preferred-position key is undocumented, so if a future macOS stops honoring it (verified by re-measuring after the rescue), a small round OpenUsage button appears just below the menu bar next to the notch: click opens the dashboard, drag to move, right-click → Hide Until Relaunch.
-
Panel anchoring — whenever the panel is opened while the item is hidden (global shortcut, surrogate), it anchors at the nearest visible notch edge instead of materializing centered under the notch.
Heads-up on the trade-offs: the rescue is zero-sum (a neighbor gets nudged left — deliberate, since the user is trying to reach OpenUsage), and it leans on an undocumented-but-long-stable defaults key, which is exactly why layer 2 exists.
I have this implemented on a branch with unit tests (the geometry fixtures are the real measurements above) and screenshots; happy to open the PR once this issue is approved. Related previously-closed reports that look like the same underlying cause: #202, #517, #573.



Activity
robinebers commentedon Jul 16, 2026
hey, thank you! this is valid, but macOS golden bridge fixes this completely by no longer showing icons behind the notch at all.
hesitant to put this in because it would pretty quickly become dead code in september.
fix: recover the status item when the menu bar parks it under the notch
maxmilian commentedon Jul 18, 2026
Thanks for taking a look, and fair concern — I'd rather not leave you with code that dies in September either.
One factual point before you decide, though: I think you mean macOS 27 Golden Gate, and the native overflow handling there does look real (Six Colors' public-beta review: "Apple has added some light menu-bar management, specifically to deal with items that overflow the notch on some MacBook models") — overflowed items now collapse behind an arrow to the left of the notch instead of being silently drawn under it.
But
Package.swiftdeclaresplatforms: [.macOS(.v15)], so OpenUsage still supports macOS 15 and 26, neither of which gets that fix. I hit this on 26.5.2, where the item is measurably 100% occluded (barsstyle: x902–938, notch 791–1012) with zero user-facing signal — the app just looks dead. So the code wouldn't be dead in September; it'd be dormant on 27 and still load-bearing for everyone who hasn't upgraded, which on the Mac is usually a year or two of the install base.Two ways I'm happy to go, your call:
Either way the measurement + dead-ends writeup in this issue can stay as a pointer for anyone who reports it on 15/26.
robinebers commentedon Jul 18, 2026
Gating it to 26 and below would be acceptable if the UX gets this right yes. Will keep this open and take a look.
maxmilian commentedon Jul 19, 2026
Version gate is in — pushed to #994 (
a17ea1a):NotchGeometry.fallbackIsNeededgates onmajorVersion <= 26; on macOS 27+ the monitor never starts and the panel-anchor branch is skipped, so the whole feature is a no-op there.StatusItemOcclusionMonitor, theNotchGeometryocclusion helpers, and the gate in one sweep.docs/menu-bar.mdnotes the recovery is disabled on 27+ since the system handles overflow natively.On the UX for 15/26: the order is rescue-first (rewrite the item's preferred position so it re-lands right of the notch — this is the normal outcome and there's no extra chrome), and the surrogate pill only appears if the rescue doesn't stick. Happy to adjust either behavior if you'd like it more conservative.
github-actions commentedon Aug 19, 2026
This issue has been inactive for 30 days. It will be closed in 3 days unless there is new activity. If this is still relevant, please comment.
github-actions commentedon Aug 23, 2026
Closed due to inactivity.
jungsehui commentedon Sep 2, 2026
Still reproduces on macOS 26.6.2 with 0.7.10 — and the manual position rewrite does not rescue it
Reporting a fresh reproduction, since this was closed on the premise that macOS 27 handles notch overflow natively. That premise holds for 27, but macOS 26 users are still affected and
Package.swiftstill declares.macOS(.v15).Environment
safeAreaInsets.top= 33auxiliaryTopLeftArea/auxiliaryTopRightAreameterStyle = used, 9 providers enabledThe shipped binary contains no notch handling —
stringsfinds 0 occurrences ofNotchGeometry,auxiliaryTopLeftArea,fallbackIsNeeded, ornotch. Consistent with #994 never being merged.Symptom
The status item is never visible and never clickable. The app itself is healthy: it runs, collects provider data (10 KB of
providerSnapshots.v9), and updates normally.What I ruled out (each tested separately, app restarted between each)
com.robinebers.openusagedomain,killall cfprefsd, launched clean. Still invisible. (Restored from backup afterwards.)codesign --verify --deep --strictpasses,spctlaccepts (Notarized Developer ID), universal binary on arm64, no crash reports.The workaround suggested in this issue does not work here
Layer 1 of the proposed fix is rewriting the remembered position. I did that manually, quitting and relaunching between each value:
NSStatusItem Preferred Position Item-0All three land right of the notch (which ends at 948). For comparison, two apps whose icons are visible on this machine sit further left: Raycast at 425 (x ≈ 1285) and another at 524 (x ≈ 1186).
Notably, on quit AppKit wrote the same value back unchanged each time rather than the item's real placement. I could not determine whether that means macOS honoured the preference and the item is simply drawn under the notch, or the item was never laid out at all.
Why this might matter for the close decision
If the item can end up unreachable even with the preferred position pointing well clear of the notch and the bar nearly empty, then "macOS 27 stops drawing behind the notch" may not cover this case — and macOS 15/26 users have no recovery path today, manual or automatic. Happy to run any measurement that would help narrow it down.