Skip to content

Choosing an app menu item does nothing in VS Code because StableBar's menu takes the keyboard #941

Done

Description

@MaHofseth

What happens

Choosing items from StableBar's App menus does nothing in VS Code, including File > Open Folder and File > New Text File. In Ardia (a browser), New Tab appears for a split second, then closes.

Steps to reproduce

  1. Add an App menus widget.
  2. Bring VS Code to the front.
  3. From StableBar, choose File > New Text File.
  4. Optional: in VS Code, run "Developer: Set Log Level…", pick Trace, and repeat step 3 to see the log line under Evidence.

Expected

The command runs, as it does from a native menu.

Environment

  • StableBar 0.19.0, macOS 27.2.1, MacBook display with a notch
  • AeroSpace 0.21.3-Beta, VS Code 1.147.0
  • App menus with Expand on hover on; the failures were seen with menus opened from the tray under the bar
  • Setting bar.motion to none did not help
  • Menus opened directly from the bar were not tested on 0.19.0, but the code makes them take the keyboard too

Evidence

VS Code's log, at Trace level, for a click through StableBar:
menubar#runActionInRenderer: no active window found {"type":"keybinding","userSettingsLabel":"cmd+n"}

An Accessibility press of the same item from a script, with no StableBar popup open, was accepted.

In a local build where app menus opened with the pointer leave the keyboard with the app, VS Code accepted New Text File (from the bar and from the tray) and Open Folder (from the bar). Ardia's New Tab stayed open; its cause wasn't confirmed from a log.

Diagnosis

On main (8590fcd), PopupPanel.canBecomeKey is always true (Sources/StableBar/Popups/PopupPanels.swift). WidgetPopup makes a popup key in two places: when it opens from a click (makeKeyAndOrderFront), and in keepOpen() when a click lands inside it, which is how the tray, opened on hover, takes the keyboard. The app in front then has no key window when AppMenu.press sends the press. VS Code 1.147.0 drops a menu command when none of its windows is focused.

A fix must keep keyboard use of the bar (#212) and of popups (#517), and Escape closing a menu.

Related

#286 and #291 moved app menus from native menus to StableBar popups. #757 and #798 are about menu bar items, which use a different path.

Triaged by Claude Code (Claude Sonnet 5.5; drafts revised with Claude Opus 5.5).

Activity

  1. added
    needs-triage
    on Nov 25, 2026
  2. added
    bug
    P2
    and removed
    needs-triage
    on Nov 26, 2026
  3. stablebar-releases commented on Nov 29, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.20.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

    P2bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions