Repository navigation
Conversation
There was a problem hiding this comment.
Thanks for the PR! OpenUsage reviews external PRs only when they implement an issue a maintainer has already approved with the approved label. Please open an issue, wait for approval, then reopen this (or open a focused PR) linking it with Fixes #<issue>. Happy to take a look once it's linked to an approved issue.
Powered by Cursor Automations
Sent by Cursor Automation: OpenUsage PR Gatekeeper
On a notched MacBook with a crowded menu bar, macOS pushes the leftmost third-party status item underneath the notch: the app logs "Status item ready" but nothing is visible or clickable anywhere. Detect that state (pure geometry over auxiliaryTop*Area, >=75% hidden) and recover in layers: rewrite the item's preferred position and bounce autosaveName so it re-lands right of the notch; if that doesn't stick, show a small surrogate button below the menu bar that opens the dashboard; and anchor the panel at the nearest visible notch edge whenever it opens while the item is hidden. Fixes robinebers#993 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019dpF8491eHK8reiuJ8vMxB
be33283 to
af2c476
Compare
macOS 27 manages menu-bar overflow natively (overflowing items fold behind a chevron instead of being parked under the notch), so the rescue/pill fallback would be dead code there. Gate both entry points on NotchGeometry.fallbackIsNeeded so the whole feature is a no-op on 27+ and can be deleted wholesale once macOS 26 support ends. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ur7TeBoBSYXwFexxaJJExC
|
This PR has been inactive for 7 days. It will be closed in 3 days unless there is new activity. If this is still relevant, please comment or push an update. |
|
Still relevant — flagging that rather than letting the timer run out. The state here is a label, not a technical blocker. @robinebers reviewed the approach on #993 on Jul 18 ("Gating it to 26 and below would be acceptable if the UX gets this right yes. Will keep this open and take a look."), and I pushed that version gate on Jul 20 ( It's still a draft only because of the issue-first gate: #993 hasn't been marked |
|
This PR has been inactive for 7 days. It will be closed in 3 days unless there is new activity. If this is still relevant, please comment or push an update. |
|
Still relevant — but this is the second time I'm answering the bot on this PR, so rather than just saying that again, here is where it actually stands and a concrete way to end the loop. The fix is still the only one for this bug. Re-checked against
Everything you asked for is in. On Jul 18 you said "Gating it to 26 and below would be acceptable if the UX gets this right yes. Will keep this open and take a look." — What's actually blocking is a label, not code. The PR carries @robinebers, whichever of these you prefer is fine by me:
No rush on my end, and no need to reply to this if option 1 is just a label click. |
|
Closing this myself. No answer came back on the three options above, and I'd rather take it off your queue than keep resetting a 7-day timer on a PR you haven't had a chance to weigh in on. To be clear about what this is and isn't: you never said you didn't want it — I'm not reading silence as a decision, I'm just not leaving it for the bot to make. The work isn't lost. The branch stays up, Thanks for the Jul 18 steer on gating; it was the right call and it made the diff considerably smaller than what I first proposed. |


TL;DR
When a crowded menu bar pushes the status item under the MacBook notch, OpenUsage becomes invisible and unclickable while its log reports "Status item ready". This PR detects that state and recovers: it moves the item back into the visible menu bar, falls back to a small surrogate button if the move doesn't stick, and anchors the panel beside the notch instead of under it.
Closes #993 (opened first per the issue-first flow; measurements and dead-end analysis live there).
What was happening
Status item ready (button: true, …), so to the user OpenUsage "never launched", and relaunching lands it in the same spot.NSStatusItem.What this changes
NotchGeometry(new, pure) — computes the notch rect fromauxiliaryTop*Area, how much of the button it hides (occluded at ≥75%), and the fallback panel anchor. Mirrors thePanelGeometrypattern; unit-tested with the real measured fixtures.StatusItemController.repositionStatusItemRightOfNotch()rewrites the item's remembered position (the sameNSStatusItem Preferred Positiondefault that ⌘-dragging maintains) and bouncesautosaveNameso AppKit re-reads it; the item re-lands just right of the notch. Verified live on macOS 26.5.2: a 99%-hidden item moved to the visible menu bar.StatusItemOcclusionMonitor(new) — checks after launch, on screen-parameter changes, and on a slow 30 s poll. One rescue per occlusion episode; it re-measures afterwards and only if the item is still hidden shows a surrogate button (borderless non-activating panel, icon-only) just below the menu bar at the nearest visible notch edge — click opens the dashboard, drag to move, right-click → Hide Until Relaunch. Hidden while the dashboard is open, and removed automatically the moment the real item is visible again.showPanel()anchors at the nearest visible notch edge whenever the button is effectively hidden, so the panel never opens centered under the notch.docs/menu-bar.mdgains a short "The notch" section.Heads-up
auxiliaryTop*Areaisnil, every new path is inert, zero behavior change.statusItem.autosaveNamedirectly writes a key literally named… Optional("Item-0")that AppKit never reads.Tests
NotchGeometryTests(8 cases) — fixtures are the real AX measurements from the reproducing machine (screen 1800×1169, notch 791–1012, item frames 767×170 / 902×36).maincheckout.anchoring the panel at x=1012in the log).Screenshots
Status item rescued back into the visible menu bar (Claude/Codex/Z.ai strip, right of the notch):
Surrogate button (fallback path) below the menu bar at the notch's right edge:
🤖 Generated with Claude Code
https://claude.ai/code/session_019dpF8491eHK8reiuJ8vMxB