Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/desktop-electron/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ function setupApp() {
killSidecar()
})

// On macOS, closing all windows does not quit the app by default —
// the process stays alive in the Dock with the sidecar still running.
// Explicitly quit so the sidecar is cleaned up via before-quit/will-quit.
app.on("window-all-closed", () => {
killSidecar()
app.quit()
})

for (const signal of ["SIGINT", "SIGTERM"] as const) {
process.on(signal, () => {
killSidecar()
Expand Down
Loading