File: internal/tool/desktop_control_darwin.go L518-527.
Each nesting level generates 'menu item X of menu X' - the menu is named with the ITEM's own name. Live osascript probe on macOS: the menu under menu bar item 'File' is named 'File' (menus are named after their PARENT). menu_select 'File > Save' therefore references nonexistent 'menu "Save"' and always errors (-1728). Only depth-1 (opening a top-level menu) works.
Impact: High - the entire macOS menu_select capability is non-functional.
Fix: name each 'of menu' with the parent ('menu item "Save" of menu "File" of menu bar item "File"').
Verified by independent re-review with live System Events probe.
File: internal/tool/desktop_control_darwin.go L518-527.
Each nesting level generates 'menu item X of menu X' - the menu is named with the ITEM's own name. Live osascript probe on macOS: the menu under menu bar item 'File' is named 'File' (menus are named after their PARENT). menu_select 'File > Save' therefore references nonexistent 'menu "Save"' and always errors (-1728). Only depth-1 (opening a top-level menu) works.
Impact: High - the entire macOS menu_select capability is non-functional.
Fix: name each 'of menu' with the parent ('menu item "Save" of menu "File" of menu bar item "File"').
Verified by independent re-review with live System Events probe.