Skip to content

fix(scrybe-app): socket quit exits the process, not just the window - #233

Merged
hartsock merged 1 commit into
mainfrom
fix/232-quit-exits-process
Jul 27, 2026
Merged

fix(scrybe-app): socket quit exits the process, not just the window#233
hartsock merged 1 commit into
mainfrom
fix/232-quit-exits-process

Conversation

@hartsock

Copy link
Copy Markdown
Owner

The #192 UAT gate's first catch, before it even merged. scrybe quit --force returned success while the process and socket stayed alive (verified: 5s later scrybe read still served the buffer) — the deleted pkill fallback had masked this since forever. Fix: quit_app command (AppHandle::exit(0), no plugin) after the dirty checks + best-effort socket unlink (exit skips destructors; stale sockets are typed not-running per #211 anyway). Verified with the same headless probe: process exits. Regression lives in the incoming #192 UAT script. Fixes #232

The scrybe://cli-quit listener closed the main window and trusted
window-close-exits-app; in practice the close request left the PROCESS
and the cli_rpc socket alive — a half-dead app agents could keep
driving. The deleted pkill fallback (#207) had masked this for the
app's whole life; the #192 UAT harness caught it on its first local
run (quit --force → 5s later the socket still served reads).

New quit_app command (AppHandle::exit(0) — no process plugin) invoked
after the frontend's dirty checks; best-effort socket-file unlink first
since exit skips destructors (a stale socket is typed not-running by
clients, #211, but tidy beats stale).

Regression coverage: the #192 UAT script's "socket quit stops the app"
check (headless harness), which is how this was found.

Fixes #232

Co-Authored-By: Claude Opus 4.8 (gnuc orchestrator) <[email protected]>
@hartsock
hartsock merged commit 41c65ab into main Jul 27, 2026
14 checks passed
@hartsock
hartsock deleted the fix/232-quit-exits-process branch July 27, 2026 02:49
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.

bug(scrybe-app): socket quit closes the window but the process survives (socket stays live)

1 participant