Repository navigation
Conversation
On macOS a closed window left its run going, and on quit a spawned binary outlived the app until its next stdout write. Closing or quitting with a tracked run now asks first; Stop kills every tracked run, then closes or quits. Cancel leaves the window and run as they were. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closing the window or quitting while a run is in progress now asks first. Before this, on macOS a closed window left its run going with no window. After quit, a binary stayed alive (reparented to launchd) until its next stdout write killed it; a binary that wrote nothing outlived the app. Findings: jtklein-agents#332.
Summary
createMainWindow new BrowserWindow + confirmCloseWithRuns( win, dialog, app )src/main/cancelRun.tsgainshasRuns()andstopAllRuns(). The app has a single window, so every tracked run belongs to it.Evidence
Before: an Electron main spawned raxmlHPC, raxml-ng and modeltest-ng the way
spawnProcessdoes, then calledapp.quit(). A silent child (/bin/sleep) survived with PPID 1. The binaries died only at their next write.After: the built app was driven with Playwright and the dialog stubbed in main, during a ModelTest-NG run:
src/main/confirmClose.test.tscovers five cases:Full suite: 502 tests pass.
Merge Danger
Door: two-way
Revert the commit to restore the old close behaviour. No data or files are touched.
Blast Radius: window-close
Every window close and every quit now goes through this guard. It is only checked on macOS.
spawnProcessruns the binary throughcmd.exe(shell: true).proc.kill()may stop onlycmd.exeand leave the binary running, after Stop and after the existing Cancel button alike.autoUpdater.quitAndInstall()during a run now shows the dialog too.🤖 Generated with Claude Code