Skip to content

fix: macOS native menu is missing items and one is dead #892

Closed

Description

@EVWorth

The native macOS menu (src-tauri/src/menu.rs) has drifted from the in-app menu (src/lib/actions.ts):

  • A dead item. "Compare Schemas" sends menu-action with id compare-schemas, but AppLayout has no case "compare-schemas", so choosing it on macOS does nothing.
  • Missing items. Backup, Restore, View (zoom, theme), Agents, Command Palette and New Table are in the in-app menu but not in the native one.
  • No disabled state. Actions that need a connection are greyed out in the in-app menu (Disable or hide menu and palette items that cannot run #821), but the native menu can't do that.

Reproduce

grep -n 'with_id' src-tauri/src/menu.rs | sed 's/.*with_id(app, "\([^"]*\)".*/\1/' | sort > /tmp/native
grep -n 'case "' src/components/layout/AppLayout.tsx | sed 's/.*case "\([^"]*\)".*/\1/' | sort > /tmp/handled
comm -23 /tmp/native /tmp/handled   # native items nothing handles

Fix

  • Build the native menu from the same action list the frontend uses. One option is a set_native_menu(items) command that the frontend calls with each item's { id, label, enabled }, which would also cover macOS native menu has no "Connect to" submenu #863's "Connect to" submenu.
  • Failing that, add the missing items by hand and a set_menu_enabled(id, enabled) command.
  • Either way, add a test asserting every native id has a handler in AppLayout, like the mock coverage test.

Found while fixing #821 and #863.

Activity

  1. added
    bug
    on Oct 24, 2026
  2. added a commit that references this issue on Oct 25, 2026
    4742cb9
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions