Un-escapable tab suggestions

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When writing python code, I often get “tab” suggestions that I cannot “esc” to remove. These suggestions are in opaque gray, and look like the other tab suggestions, but when I press esc they do not go away. I can double click on them to add, but I can’t seem to do anything to make them go away.

E.g., in the attached screenshot, cursor is trying to add [any] to three locations

Steps to Reproduce

They appear when I’m writing python code.

Expected Behavior

I should be able to press esc, and the suggestions dissapear

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.54
VSCode Version: 1.99.3
Commit: 5c17eb2968a37f66bc6662f48d6356a100b67be0
Date: 2025-10-21T19:07:38.476Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Thanks for reporting! Since ESC should dismiss Cursor Tab suggestions, let’s isolate what’s causing this:

Please test these scenarios:

  1. Fresh file test: Create a new Python file in a fresh folder. Does ESC fail there too?
  2. Without extensions: Close Cursor, then open it from terminal with:

bash

cursor --disable-extensions

Does ESC work now in Python files?
3. Consistency check:

  • Does this happen in ALL Python files or specific ones?
  • Is ESC always broken for suggestions, or only sometimes?
  • Does ESC work for other things (closing dialogs, command palette, etc.)?
  1. macOS software: Do you have any keyboard customization tools running?

Thanks!

Hi, thanks for helping me out! Here are the results from my testing:

  1. I created a new python file in a fresh folder, and copied a python function that I’ve been seeing these unescapable autocompletes. The autocompletes show, and pressing esc does not remove the suggestion. See below: [tuple[Any, …]]

2. 2. I closed Cursor, then opened it from terminal with: cursor --disable-extensions. I still see the same problem.

  1. Does this happen in ALL Python files or specific ones? Just specific ones. And not consistently, even for the same file. For instance, the file that I originally observed this in now behaves differently. The original block of code no longer shows a completion:

… but in another area in the same file, there is a new unescapable autocompletion:

Important: There is a new piece of information I’ve noticed. When I hover over the autocompletion text with my mouse, it reads “Double-click to insert”

  1. I don’t have any keyboard customization tools running, that I know of.

Could you please check if this solves it?

2 Likes

Yes that fixes it, thank you! So it appears to be a problem with cursor pyright, does anyone know if the cursor team is aware of the problems raised here and in Cursor Type Checker is force-proposing completely undesired and unwanted proposals ?

Hi cursor team (@sanjeed5 )
I would suggest turning this off by default, it’s rather a strange type hinting for python. I never saw such type hinting before, if defining a new variable with type myvar:list = foo or when defining a function args/kwargs and returns it’s understandable, but when using a list() ; tuple() ect.. as conversion functions it is strange.

I don’t think it’s standard to type hint

myfunction[TypeHintFoo|TypeHintThat](*args,**kwargs)

like this :sweat_smile:

1 Like

Thanks @williamdavis and @Dorian_B
Yes, I’ve forwarded this to the team too.