Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Native dialogs/popups in Cursor close almost immediately after being opened on Windows.
For example, when I trigger the Discard File confirmation dialog, the native Windows dialog appears for approximately 200–300 ms and then loses focus and closes, making it impossible to interact with the dialog.
This also affects other popup/dialog interactions in Cursor.
I investigated the issue by monitoring the foreground HWND using the Windows user32.dll APIs.
The behavior is:
Cursor main window (Chrome_WidgetWin_1) has foreground focus.
Cursor opens a native Windows dialog (#32770).
About 200–300 ms later, Cursor’s main Chrome_WidgetWin_1 window becomes the foreground window again.
The native dialog closes as a consequence.
Importantly, no other process takes foreground focus between the dialog and the Cursor main window. Both windows belong to the same Cursor.exe process.
Example captured log:
16:18:43.371
HWND=592114
PID=25092
PROCESS=Cursor
CLASS=Chrome_WidgetWin_1
TITLE=Customize - Baruk.Know.InDoc - Cursor
16:18:46.090
HWND=1771702
PID=25092
PROCESS=Cursor
CLASS=#32770
TITLE=Cursor
16:18:46.320
HWND=592114
PID=25092
PROCESS=Cursor
CLASS=Chrome_WidgetWin_1
TITLE=Customize - Baruk.Know.InDoc - Cursor
So in this reproduction, only ~230 ms after the native dialog receives foreground focus, Cursor’s main window takes foreground focus back.
I also inspected the #32770 dialog’s child controls. For the Discard File dialog they are:
CLASS=DirectUIHWND
CLASS=CtrlNotifySink
CLASS=ScrollBar
CLASS=SysLink
CLASS=Button TEXT=Discard File
CLASS=Button TEXT=Cancel
This confirms that the disappearing window is the actual native Discard File / Cancel dialog.
Steps to Reproduce
- Open Cursor on Windows.
- Trigger an action that opens a native confirmation dialog, such as Discard File.
- Do not click or press anything after opening it.
- The dialog appears briefly.
- Approximately 200–300 ms later, the dialog loses focus/closes and Cursor’s main window becomes foreground again.
The issue also reproduces without a project/workspace open.
Expected Behavior
The native dialog should remain open and retain focus until I explicitly choose an action such as Discard File or Cancel.
Cursor’s main window should not automatically reclaim foreground focus while a native modal dialog is open.
Operating System
Windows 10/11
Version Information
Version: 3.15.19 (user setup)
Date shown in About Cursor:
Aug 11, 2026, 2:22 AM
CLI output for this installation:
3.15.19
de07bee81cefe43461ebf4f40c3d2d78d15052a0
x64
The problem also reproduced when testing an older Cursor installation, so it does not appear to be exclusively caused by 3.15.19.
Additional Information
The issue started less than three days ago.
Cursor is still usable for normal editing, but dialogs/popups that depend on retaining focus can become effectively unusable because they close almost immediately.
I can provide a screen recording and additional HWND/focus logs if needed.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor