MacOS IDE quit keyboard shortcut fails

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In MacOS the keyboard shortcut to close the IDE generates an error message and does not

Steps to Reproduce

  1. Open IDE
  2. Press the shortcut ⌘+Q to close browser
  3. Press the Enter key or click the Quit button in modal
  4. See

Illegal state: service accessor is only valid during the invocation of its target method

Expected Behavior

The browser would close after confirming in modal

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

IDE
Version: 3.6.31 (Universal)
VS Code Extension API: 1.105.1
Commit: 81fcf2931d7687b4ff3f3017858d0c6dee7e2a60
Date: 2026-05-31T17:46:29.630Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.220
OS: Darwin arm64 25.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @jimmymorris!

We still have the bug ticket open from the Support ticket you filed a few months ago.

From my testing the crash only happens in a very specific circumstance: you have window.confirmBeforeClose set to always or keyboardOnly, and the ⌘+Q keys are still held down at the moment you confirm the quit dialog (e.g. pressing Enter / clicking Quit while Cmd is still pressed). That combination hits a code path that errors out instead of quitting. With the default setting, this path never runs, which is why most people don’t see it.

It’s something we should definitely fix. In the meantime, here are two workarounds that both avoid it:

  • Release ⌘+Q before pressing Enter / clicking Quit in the confirmation dialog, or
  • Remove the window.confirmBeforeClose setting (or set it back to never). You should still receive a dialog from Cursor asking if you’re sure you want to quit.

A fix should be coming in 3.8!