macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reached
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- electron, typescript
- Domain
- desktop-dev
Research direction
Start in electron/messageBox.ts at showSaveDialogOver (L44-56) and read its comment about #743 to see how an owner window turns the panel into a sheet, then compare with exportDiagnosticFile in electron/ipc/handlers.ts (L1990-1994), which calls dialog.showSaveDialog with no owner. Trace how the menu and tray entry points reach that handler so the focused window can be passed through as owner. Done when the diagnostics panel is attached to the editor window and stays in front after Cmd+Tab; verifying needs a macOS build.
Written by the indexing model from the issue text.
Description
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
- In the editor, wordmark menu → Save Diagnostics. The "Save Diagnostic File" panel opens in front.
- 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.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 231
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 150
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getopenscreen/openscreen
-
A freshly imported video or image shows 0:00.0 on its Media card until it is placed on the timelineOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getopenscreen/openscreen#1663 ·
Maintainers usually reply within 1 day
-
Native review wanted: machine-translated recording bar tooltips (14 locales)Possibly taken @auberginewly claimed this 45 days ago. Opengood first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getopenscreen/openscreen#913 · 5 comments ·
Maintainers usually reply within 1 day
-
Small papercuts from the 2.4.0-rc.1 end-to-end passPossibly taken @EtienneLescot claimed this today. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
getopenscreen/openscreen#1668 ·
Maintainers usually reply within 1 day
-
GNOME Wayland: the Notes window does not stay on topPossibly taken @EtienneLescot claimed this today. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 28/100
getopenscreen/openscreen#1666 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 64/100
getopenscreen/openscreen#1665 ·
Maintainers usually reply within 1 day
All issues in getopenscreen/openscreen
Similar issues
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100
lingdojo/kana-dojo#34545 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
blocklist addition
Difficulty 1/5 Under an hour Newbie friendliness 82/100
MetaMask/eth-phishing-detect#315455 ·
Maintainers usually reply within 1 day
-
area: telegram bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
griffinwork40/agent-afk#5275 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
erkamyaman/rust-anything#371 ·
Maintainers usually reply within 1 day
-
Widget: match the chat bubble color to the rest of the widgetPossibly taken @sethr07 claimed this today. Openenhancement frontend help wanted
Difficulty 2/5 Half a day Newbie friendliness 75/100
DeadantCo/answerLoopsdev#68 · 3 comments ·