Enter key does not approve shell commands in Agents Window (Glass UI); mouse click works

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When the agent requests approval to run a shell command in the Agents Window (Glass UI), pressing Enter on the keyboard does not approve/run the command. Only clicking the Approve/Run button with the mouse works.

In the Editor Window (classic sidepanel agent chat), Enter to approve works as expected when the approval UI has focus.

This appears to be a keyboard focus/routing issue specific to the Glass UI, not intentional behavior.

Steps to Reproduce

  1. Open Agents Window (Cmd+Shift+P → “Open Agents Window”)
  2. Start an agent conversation that triggers a shell command requiring manual approval (e.g. a command not on the allowlist)
  3. When the Run/Approve prompt appears, press Enter
  4. Observe: nothing happens — command is not approved
  5. Click the Approve/Run button with the mouse
  6. Observe: command runs successfully

Control (works):
7. Switch to Editor Window (Cmd+Shift+P → “Open Editor Window”)
8. Repeat steps 2–3 in the sidepanel agent chat
9. Press Enter when the approval prompt is visible
10. Observe: command is approved and runs

Expected Behavior

Pressing Enter should approve/run the default action (Run/Approve) when a command approval prompt is shown — consistent with the Editor Window behavior.

Operating System

MacOS

Version Information

Version: 3.5.17
Commit: d5b2fc092e16007956c9e5047f76097b9e626ca0
VSCode Version: 1.105.1
OS: Darwin arm64 24.6.0

Additional Information

Possibly related to known Glass UI approval/focus issues in the Agents Window. Similar Enter-to-approve behavior was reported and fixed for the Editor sidepanel, but Agents Window still appears affected.

Workaround: Use the Editor Window for keyboard-heavy agent workflows, or click the approval button with the mouse.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Thanks for the report @Ofer_Morag_Brin! We are already tracking this bug, and I’ve added your report.

Hi Colin! Any update on this one? :folded_hands:

Hey @Ofer_Morag_Brin,

A fix for Enter not approving shell commands in the Agents Window is on the way in Cursor 3.8!