Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
There’s a couple of minor bugs when it comes to working with the agent.
First, if an agent creates a file then later deletes it, if you haven’t accepted the changes before the agent deletes it it’ll stay in the queue of files to be reviewed, and if you ‘accept’ it you’ll have an extra file that shouldn’t be there. Even using the arrows to move past it will jump straight back as soon as you move on from the next file.
Second a UI bug with the text entry field when the agent is asking for permission - the cursor will always jump to the end of the text entry field when you type a character.
Steps to Reproduce
First: Have the agent create a file, don’t accept or reject the changes, then have the agent delete it. The file will show up with strikethrough on the name, but accepting it will reinstate the file.
Second: Imagine you’ve asked the agent to do something, but while it’s working you either spot a problem or just want to provide the next step, so you start typing in the text entry box. The agent then asks permission to, e.g. create a directory with mkdir -p. You decide to finish what you’re typing first - and notice a typo. So you click back to where the typo is and try to fix it. Every time you press a letter key at that point the cursor will (incorrectly) jump back to the end of the text entry box - this makes it almost impossible to type a full word.
Expected Behavior
In the first case it should recognise that the file was deleted. Optionally show a new UI option if you think a user might want to keep the deleted changes, but having no option to accept the agent’s decision to delete is weird.
In the second case you should be able to click anywhere in the text entry box and type as normal without the cursor jumping to the end.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.6.42
VSCode Version: 1.99.3
Commit: 5911e9593196a000b1c00553aaf03b0b32042b90
Date: 2025-09-20T17:16:56.346Z (1 day ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0