Skip to content

Status item parked under the MacBook notch: app becomes invisible and unreachable (logs say "Status item ready") #993

Closed as not planned

Description

@maxmilian

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):

before

Environment

  • OpenUsage 0.7.4 (reproduced on main dev 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):

  1. Self-rescue (primary) — rewrite the item's remembered position (the same NSStatusItem Preferred Position default that ⌘-dragging maintains) so it re-lands just right of the notch, and bounce autosaveName so AppKit re-reads it. Verified live on macOS 26.5: a 99%-hidden item moved back into the visible menu bar.

    rescued

  2. 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.

    pill

  3. 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

  1. robinebers commented on Jul 16, 2026

    @robinebers
    Owner

    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.

  2. added a commit that references this issue on Jul 18, 2026
    af2c476
  3. maxmilian commented on Jul 18, 2026

    @maxmilian
    Author

    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.swift declares platforms: [.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 (bars style: 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:

    1. Gate it on version — skip the whole detect/rescue path on macOS 27+ so it's a no-op there and cleanly deletable once you drop < 27.
    2. Close it — if you'd rather carry the ~1 release of breakage than the complexity, I completely get it and I'll close fix: recover the status item when the menu bar parks it under the notch #994 with no hard feelings.

    Either way the measurement + dead-ends writeup in this issue can stay as a pointer for anyone who reports it on 15/26.

  4. robinebers commented on Jul 18, 2026

    @robinebers
    Owner

    Gating it to 26 and below would be acceptable if the UX gets this right yes. Will keep this open and take a look.

  5. maxmilian commented on Jul 19, 2026

    @maxmilian
    Author

    Version gate is in — pushed to #994 (a17ea1a):

    • NotchGeometry.fallbackIsNeeded gates on majorVersion <= 26; on macOS 27+ the monitor never starts and the panel-anchor branch is skipped, so the whole feature is a no-op there.
    • The check is a pure function with a unit test (15/26 → on, 27/28 → off), and everything it guards sits behind the one flag — when macOS 26 support ends you can delete StatusItemOcclusionMonitor, the NotchGeometry occlusion helpers, and the gate in one sweep.
    • docs/menu-bar.md notes 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.

  6. github-actions commented on Aug 19, 2026

    @github-actions

    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.

  7. added
    stale
    on Aug 19, 2026
  8. github-actions commented on Aug 23, 2026

    @github-actions

    Closed due to inactivity.

  9. jungsehui commented on Sep 2, 2026

    @jungsehui

    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.swift still declares .macOS(.v15).

    Environment

    OpenUsage 0.7.10 (build 550), installed via Homebrew cask
    macOS 26.6.2 (25G83)
    Machine Mac15,13 (MacBook Air 15")
    Main display 1710 × 1107 logical, safeAreaInsets.top = 33
    Notch x 763 – 948 (width 185), from auxiliaryTopLeftArea / auxiliaryTopRightArea
    Second display 1920 × 1080, no notch
    Menu bar style meterStyle = used, 9 providers enabled

    The shipped binary contains no notch handling — strings finds 0 occurrences of NotchGeometry, auxiliaryTopLeftArea, fallbackIsNeeded, or notch. 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)

    1. Menu bar crowding — quit every other status-item app (Ice, Raycast, AltTab, BetterDisplay), leaving only Control Center, the clock, and one other item. 762 pt of free space right of the notch. Still invisible.
    2. Menu bar manager interference — Ice quit entirely, not just disabled. Still invisible.
    3. Corrupt preferences — deleted the whole com.robinebers.openusage domain, killall cfprefsd, launched clean. Still invisible. (Restored from backup afterwards.)
    4. Stale/failed update — the app had been stuck at 0.7.8 for 6 days with two orphaned Sparkle processes, because Sparkle waits for a quit that never comes on an always-resident app. Quitting applied 0.7.10 within seconds. The symptom is identical before and after, so it is not update-related.
    5. Bundle integrity — codesign --verify --deep --strict passes, spctl accepts (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-0 Implied x (1710 − value) Result
    702 (original) ≈ 1008 invisible
    300 ≈ 1410 invisible
    150 ≈ 1560 invisible

    All 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions