Enter in "Add new doc" dialog submits chat message, not the dialog

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Pressing Enter inside the “Add new doc” dialog (@ → Docs → Add new doc) submits the chat message instead of confirming the dialog. Since you’ve already typed at least the @ symbol, this sends an incomplete prompt and starts a generation.

The root cause appears to be that the dialog does not capture keyboard focus when it opens — Enter is processed by the chat input behind it.

The issue manifests differently at each stage of the dialog. In the first stage, there is only a URL input field with no button — Enter is the only way to proceed, but it fires in the chat instead. In the second stage, the dialog expands to three fields that are pre-filled based on the URL. Since the fields are already populated, there is no reason to interact with them if the values are correct — but you still have to click into a field or press Tab to shift focus before Enter will work. This defeats the purpose of pre-filling: if the fields were left empty, you’d fill them yourself and focus would naturally land inside the dialog.

Workaround: Click into a field or press Tab before pressing Enter.

Steps to Reproduce

  1. Start typing a message in chat
  2. Type @, select Docs → Add new doc
  3. Paste a URL and press Enter without clicking into any field

Result: The chat prompt is submitted with the incomplete message. The dialog may or may not advance — behavior is inconsistent.

Expected Behavior

The dialog should capture focus when it opens. Enter should be handled by the dialog, not by the chat input behind it.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.6.22 (Universal)
VSCode Version: 1.105.1
Commit: c6285feaba0ad62603f7c22e72f0a170dc8415a0
Date: 2026-03-27T15:59:31.561Z
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
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report with the video and the workaround. It really helps.

I’ve confirmed this bug. Enter in the Add new doc dialog isn’t being captured correctly and it falls through to the chat input. I’ve passed it to the team. For now, the workaround is the same as you described. Click into the field or press Tab before hitting Enter.

Let me know if you run into anything else.

1 Like