Skip to content

Missing native app menu: edit shortcuts can die in packaged builds #353

Closed

Description

@currentbits

Spec audit finding (PRODUCT-SPEC section 2 promises an app menu): electron/ has zero Menu/setApplicationMenu references. On macOS packaged builds, no installed menu means no Edit menu, so Cmd+C/X/V/A can silently stop working in inputs. Dev mode masks it (Electron supplies a default menu).

Fix: ~15 lines in electron/main.js with a minimal App + Edit + Window role template, then verify edit shortcuts in a PACKAGED build (scripts/package-app.sh), not dev.

Activity

  1. added
    bug
    plan:todo
    on Aug 17, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Fixed (uncommitted in the working tree, ready for review):

    • electron/menu.js (new): minimal role-based template (App on darwin + Edit + Window), with a header comment explaining the failure mode
    • electron/main.js: installAppMenu() as the first step of whenReady, before any window exists
    • electron/test/menu.test.js (new): 3 tests asserting the Edit menu and clipboard roles on all platforms

    Verification: menu.test.js 3/3 pass; full electron suite 1033/1034 (the one failure is the known pre-existing #233 web-integration reconnect flake, unrelated). Packaged with scripts/package-app.sh and verified: out/Solenta.app contains the new code, and a live Electron boot exercising installAppMenu reports menu labels [Solenta, Edit, Window] with copy/paste/selectAll roles present (scripts/verify-menu.js, prints MENU-VERIFY-OK).

  3. added
    plan:done
    and removed
    plan:todo
    on Aug 17, 2026
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

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions