Skip to content

App menus list each item's Option alternate beside it, so Restart and Log Out skip their confirmation #657

Closed

Description

@Seb-GRAF

What happens

The Apple menu (appleMenu) lists every item's Option alternate as an ordinary row beside it: About This Mac and System Information, Restart… and Restart, Shut Down… and Shut Down, Log Out … and Log Out . The rows without "…" skip their confirmation, so one stray click restarts, shuts down or logs out at once. App menus (appMenu) show the same doubles in any app with alternates, such as Close Window and Close All.

Steps to reproduce

  1. Allow Accessibility for StableBar.
  2. Open the Apple menu from the bar.

Expected

Each item once, as the macOS menu shows it when no modifier is held. Holding Option shows each alternate in place of its item.

Alternates that add Shift, such as Force Quit beside Force Quit…, stay: their keys and modifiers can't be told from ordinary Shift commands such as Redo after Undo.

Environment

StableBar 0.15.0, macOS 26.5.1.

Evidence

Reported in #655, with a screenshot of the fixed menu.

Diagnosis

AppMenu.entries(of:) in Sources/StableBar/AppMenu.swift:149 adds every Accessibility child of the menu as an entry. Accessibility lists alternates as ordinary items, and on macOS 26.5 every item, alternate or not, reports itself as its AXMenuItemPrimaryUIElement, so that attribute can't tell them apart. AppKit shows an alternate only right after its item, with the same key and Option added.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 14, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions