You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Choosing an app menu item does nothing in VS Code because StableBar's menu takes the keyboard #941
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
Add an App menus widget.
Bring VS Code to the front.
From StableBar, choose File > New Text File.
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
chore(release): 0.20.0 [skip ci]
stablebar-releases commentedon Nov 29, 2026
🎉 This issue has been resolved in version 0.20.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀