Repository navigation
Commit 5deadbc
committed
fix(electron): quit app on window-all-closed to kill sidecar on macOS
On macOS, closing all Electron windows does not quit the application —
the process stays alive in the Dock and the opencode-cli sidecar keeps
running indefinitely, leaking CPU and memory.
Add a window-all-closed handler that kills the sidecar and quits the
app, ensuring cleanup matches the before-quit/will-quit handlers.
Fixes anomalyco#170681 parent cccb907 commit 5deadbc
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
0 commit comments