Problem
On Linux, clicking the close button on the last Qoder window quits the whole application. There is no tray icon and no setting to change this, so any agent task that is still running dies with the window. Windows already has “Close behavior: Ask / Minimize to tray / Quit”, and macOS keeps the app alive in the menu bar. Linux is the only platform where closing the window means quitting.
Solution
Enable the tray support that already ships, on Linux as well:
- Add
"linux"toshouldEnableTray(), which today returns true only forwin32, or fordarwinwhenmacosEnabledis set. - Add
"linux"to the close-request branch that callsrequestWindowsCloseBehavior(); today it is gated onprocess.platform === "win32", so Linux falls through to"application-quit"whenever no other window is open. - Render the existing “Close behavior” item in Settings on Linux; it is currently only shown for
macos/windows. - Reuse the existing preference values (
ask/minimizeToTray/quit).
The tray icon on Linux needs StatusNotifier/AppIndicator (libayatana-appindicator), which GNOME, KDE Plasma and Cinnamon all provide; where it is unavailable, falling back to today’s behavior is fine.
Use Case
I start a long agent task, close the window when I step away, and come back to a dead app. With a tray icon I could leave the session running, reopen the window from the tray, and quit deliberately from the tray menu instead of by accident.
Priority
Medium - Important improvement
Additional Info
Observed in Qoder App 0.4.4 (deb, stable channel) on Linux. The three code paths above were read from resources/app.asar of that package. Note that tray-preferences.v1.json defaults to windowsCloseBehavior: "ask", but writing that file by hand does nothing on Linux because the platform check runs first.