Skip to content

macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reached #1667

Done

Description

@EtienneLescot

On macOS, the save panel opened by Save Diagnostics ends up under the editor window after an app switch. It can then be neither seen nor clicked.

Steps

  1. In the editor, wordmark menu → Save Diagnostics. The "Save Diagnostic File" panel opens in front.
  2. Bring another app to the front (Safari here), then come back with Cmd+Tab.

Expected: the panel stays in front of the editor, or is attached to it as a sheet.

Actual

  • The editor comes back above the panel. The window list holds the panel under the editor, invisible and out of the mouse's reach.
  • Return does nothing, since the panel is not key. The Window menu offers only Minimize, Zoom and Bring All to Front.
  • The save could only be finished through accessibility (AXPress on its Save button). The bundle was then written correctly.

Seen on 2.4.0-rc.1 (DMG), macOS 27.0.1, Mac mini M1.

Why

exportDiagnosticFile calls dialog.showSaveDialog with no owner window (handlers.ts#L1990-L1994). The other save panels go through showSaveDialogOver (messageBox.ts#L44-L56). Its comment describes exactly this trap (#743): unowned, a macOS save panel is a free-floating window that a click sends behind the editor; owned, it is a sheet on that window.

Fix direction

Open the diagnostics panel with showSaveDialogOver, owned by the window the request came from. The menu and tray entry points can pass the focused window.

Activity

  1. added
    bug
    on Nov 23, 2026
  2. EtienneLescot commented on Dec 1, 2026

    @EtienneLescot
    MemberAuthor

    Fixed in main by #1672: the Save Diagnostics panel is now owned by the window that opens it, so on macOS it stays a sheet on the editor after an app switch. If it still goes behind the editor in the next build, please reopen this issue.

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