Windows desktop app abruptly quits on closing last tab with Ctrl+W; align behavior with macOS via System Tray
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23k
- Forks
- 5.9k
- Avg merge
- 11h 14m
- Merged PRs (30d)
- 357
Description
Summary
On Windows (installed via .exe), pressing Ctrl+W when no editor tabs or terminals are open (or closing the last remaining tab) abruptly terminates the entire desktop application process without any confirmation or warning.
Motivation & Context
- Discrepancy with macOS: On macOS, closing windows via
Cmd+Wleaves the application active in the Dock / Tray, which allows reopening or restoring the application without terminating the background process. - Accidental Closure: In Windows editor workflows, users frequently hit
Ctrl+Wto close tabs in succession. When the last tab closes,Ctrl+Wdirectly kills the entire app and drops running background processes. - Dedicated Exit Mechanism: T3 Code already provides a deliberate double
Ctrl+Qgesture to exit the application cleanly.
Proposed Solution
- Introduce native System Tray support on Windows with a context menu (Open / Quit) and click/double-click activation.
- Update
DesktopLifecycleto keep the background process alive on Windows uponwindow-all-closed, mirroring the macOS experience.
I have prepared a 2-part stacked PR to address this cleanly.
Contributor 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.
Research direction
Start by reading DesktopLifecycle, especially the handling of window-all-closed, and compare the current Windows behavior with the stated macOS behavior. Review the existing two-part stacked PR if available. Done means closing the last tab or window on Windows keeps the process alive, provides a System Tray Open/Quit menu with activation, and preserves deliberate quitting through Ctrl+Q.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100