Tab Autocomplete - irregular code deletion hints

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Tab Autocomplete regularly suggests deleting code.
After accepting a Tab hint, it tries to delete a few lines of code below where Im working. Notably, event when the previous suggestion was an edit/create, not a deletion.

Screenshot description:

  1. I typed “def event_end”
  2. I accepted the hint
  3. It immediately highlighted the next two methods in red.

Steps to Reproduce

  1. Start an edit on existing code and accept Tab’s suggestion.
  2. Tab will immediately suggest deleting the chunk of code below the last edit.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.4.31
VSCode Version: 1.105.1
Commit: 3578107fdf149b00059ddad37048220e41681000
Date: 2026-02-08T07:42:24.999Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

note: this has been happening since before Cursor v2

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, thanks for the report and the screenshot. It clearly shows the issue.

This is a known bug. After you accept an edit, Tab autocomplete can get too aggressive and suggest deletions. We’ve seen similar reports from other users in different languages (Python, TS, C#), so it’s not Ruby-specific:

Right now there isn’t a setting to tune how aggressive the deletion behavior is. A couple of workarounds:

  1. Press Escape to quickly dismiss unwanted deletion suggestions after accepting a Tab completion
  2. Set up a keybinding to quickly toggle Cursor Tab on and off when working in sensitive parts of the code

I’ll pass this along to the team.

Hi Dean - thanks for the reply. Ok good to know. Been doing the esc/toggle thing and it works for a workaround.

On a side note, Its a funny bug cause I thought the Tab model was more of a simpler pattern matcher. But it gets aggressive after adding code, not deleting.

When intentionally deleting code - e.g. debug logs - it’s really good at skipping around and deleting unwanted stuff…

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.