Uh oh!
There was an error while loading. Please reload this page.
fix(desktop): restore second-press quit fallback - #9485
Merged
Conversation
Contributor
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — The change alters the default hold-to-quit interaction so a second Cmd/Ctrl+Q within 500 ms quits instead of starting another hold attempt. Although the implementation is small and tested, this user-visible default behavior change warrants deliberate review. You can add or adjust custom eligibility rules. Learn more. |
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Hold mode lost its quick second-press escape hatch when quit confirmation modes were split, so retrying Cmd/Ctrl+Q could only start another hold. This restores the existing 500 ms second-press path in hold mode while keeping direct and dedicated double-press modes unchanged. Verified with all 25 quit-handler tests, desktop typecheck, and targeted lint and formatting. Implemented with gpt-5.6-sol in the Codex harness.
Note
Low Risk
Localized change to desktop quit shortcut handling with updated unit tests; restores prior user-facing behavior rather than new quit paths.
Overview
Hold mode again treats a second Cmd/Ctrl+Q within 500 ms as quit, not only when confirmation mode is
double-click. That path was the escape hatch when macOS drops key events and a hold never completes.In
QuitHold.ts, the quick second-press check runs for any non-directmode after settings resolve;directstill quits on the first press. Dedicated double-click behavior (hints, slow presses as separate attempts) stays covered by existing tests; one hold-mode test now expects quit on a quick second press.Reviewed by Cursor Bugbot for commit 18a9e40. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Restore second-press quit fallback for hold mode in
makeQuitShortcutHandlerRemoves the restriction in
makeQuitShortcutHandlerthat limited the quick-second-press quit path to double-click mode. A second press withinQUIT_DOUBLE_PRESS_MSnow quits regardless of the resolved confirmation mode, including hold mode. This handles missed completion events on macOS. Test in QuitHold.test.ts updated to expect a quit call without a second hold notification.Macroscope summarized 18a9e40.