Command Allowlist should accept input on focus loss

Describe the Bug

If you enter something in the command allowlist but do not press enter, and leave it there, it will not be added to the list once you move.
If you were thinking you added something there, and didn’t know you had to press enter, then you will not have anything actually in your list

Steps to Reproduce

Enable Auto-Run Mode
enter “ls” in the allow list, do not press enter
ask the agent to run any command that’s not ls
it will run

Expected Behavior

it should be foolproof (i’m the fool)

Screenshots / Screen Recordings


Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.3 (user setup)
VSCode Version: 1.96.2
Commit: 979ba33804ac150108481c14e0b5cb970bda3260
Date: 2025-06-15T06:55:04.603Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

No - Cursor works, but with this issue