pingdotgg / pingdotgg/t3code

Windows desktop app abruptly quits on closing last tab with Ctrl+W; align behavior with macOS via System Tray

Open
#10,161 2 comments 0 reactions 0 assignees View on GitHub

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+W leaves 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+W to close tabs in succession. When the last tab closes, Ctrl+W directly kills the entire app and drops running background processes.
  • Dedicated Exit Mechanism: T3 Code already provides a deliberate double Ctrl+Q gesture to exit the application cleanly.
Proposed Solution
  1. Introduce native System Tray support on Windows with a context menu (Open / Quit) and click/double-click activation.
  2. Update DesktopLifecycle to keep the background process alive on Windows upon window-all-closed, mirroring the macOS experience.

I have prepared a 2-part stacked PR to address this cleanly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.