Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

FEAT-177: fix CMD+Q not killing the process - #48

Merged
shafty023 merged 4 commits into
mainfrom
FEAT-177
Mar 26, 2026
Merged

FEAT-177: fix CMD+Q not killing the process#48
shafty023 merged 4 commits into
mainfrom
FEAT-177

Conversation

@shafty023

Copy link
Copy Markdown
Contributor
  • Rewrite before-quit handler to call event.preventDefault(), run async shutdown, then app.exit() to guarantee termination
  • Extract ShutdownDeps interface and runShutdownSequence() into new shutdown.ts with 5s timeout and injectable timer for tests
  • Change shutdown() in app.ts to delegate to runShutdownSequence and return "clean", "timed_out", or "failed" result
  • Add shutdown.test.ts covering clean, timeout, failed, and timer cleanup paths
  • Bump version 0.8.9 -> 0.8.10

Testing: All 432 tests pass, lint clean, typecheck clean Risks: app.exit() skips Electron window cleanup events, but we already clean up everything in shutdown(); strictly better than the current behavior where the process never exits

@shafty023
shafty023 requested a review from a team March 26, 2026 19:05
Comment thread apps/desktop/src/main/shutdown.ts
- Rewrite before-quit handler to call event.preventDefault(),
  run async shutdown, then app.exit() to guarantee termination
- Extract ShutdownDeps interface and runShutdownSequence() into
  new shutdown.ts with 5s timeout and injectable timer for tests
- Change shutdown() in app.ts to delegate to runShutdownSequence
  and return "clean", "timed_out", or "failed" result
- Add shutdown.test.ts covering clean, timeout, failed, and
  timer cleanup paths
- Bump version 0.8.9 -> 0.8.10

Testing: All 432 tests pass, lint clean, typecheck clean
Risks: app.exit() skips Electron window cleanup events, but we
already clean up everything in shutdown(); strictly better than
the current behavior where the process never exits
- Remove pull_request and pull_request_target triggers from
  claude-code-review workflow until org secrets are configured
  for the now-public repo
- Workflow can still be run manually via workflow_dispatch

Testing: Verified workflow file is valid YAML
Risks: No automated code reviews on new PRs until re-enabled
@shafty023
shafty023 merged commit c3496f0 into main Mar 26, 2026
2 checks passed
@shafty023
shafty023 deleted the FEAT-177 branch March 26, 2026 20:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants