Skip to content

Dock icon, every Quit really quits, release 0.6.5 - #27

Merged
mgilardi merged 2 commits into
mainfrom
fix/quit-ends-remote-control
Nov 16, 2026
Merged

mgilardi merged 2 commits into
mainfrom
fix/quit-ends-remote-control

Conversation

@mgilardi

Copy link
Copy Markdown
Collaborator

The owner couldn't install 0.6.4: Theseus.app stayed in use after Quit. Quit killed script, but script runs claude remote-control in its own session, so it survived.

  • Quit (menu bar icon and Cmd-Q) now stops the whole process tree Theseus started: SIGTERM, then SIGKILL after 3 s.
  • A backstop exits the app after 8 s if anything holds Quit up.
  • Version 0.6.5 everywhere, with a CHANGELOG entry.

Tested: new macOS test stopping_remote_control_leaves_no_process_behind (child ignores HUP and TERM), scripts/ci-checks.sh, and a debug build with a stand-in claude in a sandbox: before the fix the stand-in outlived Quit; after it, nothing was left.
Not tested: a real Remote Control session.

🤖 Generated with Claude Code

mgilardi and others added 2 commits November 15, 2026 17:03
…e 0.6.5

The owner couldn't replace Theseus.app because it was still in use after
Quit. Quit killed `script`, but `script` runs `claude remote-control` in a
session of its own, so it kept running. Quit now stops the whole process
tree, SIGTERM first and SIGKILL after three seconds, and a backstop exits
the app after eight seconds if anything holds Quit up.

Tested: a new macOS test where the child ignores HUP and TERM, the CI
checks, and a debug build with a stand-in claude: before the fix the
stand-in outlived Quit, after it nothing was left. Not tested: a real
Remote Control session.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The owner asked for Theseus in the Dock with a Quit like LeafJuice's
(2026-11-15). Theseus is now always a regular app: no LSUIElement, no
accessory switching. Every way out goes through one Quit: the Dock's Quit
and logout arrive as Exit without ExitRequested, so Exit now leaves the
marker too, and ExitRequested (Cmd-Q) runs the full Quit. Quit work runs
off the main thread so the window can save.

Tested: unit tests for the marker and the Dock icon; sandbox runs with a
stand-in claude for Cmd-Q and a quit Apple event (3 of 3), each leaving
the marker and no process; a bundled build kept its Dock icon with the
window closed. Not tested: clicking the menu bar icon's Quit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mgilardi mgilardi changed the title Quit ends Remote Control too, release 0.6.5 Dock icon, every Quit really quits, release 0.6.5 Nov 16, 2026
@mgilardi
mgilardi merged commit eab0071 into main Nov 16, 2026
3 checks passed
@mgilardi
mgilardi deleted the fix/quit-ends-remote-control branch November 16, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant