Code Actions overlay blocking view

‘Show Code Actions’ overlays keep popping up and blocking the view while I am writing, and they also highlight large parts of my code in red, which is distracting.
The only way I found to get rid of an overlay is to accept the code action, but so far, the code that resulted from that has not even been near what I was wanting to write, and it has more than once been quite destructive.

To reproduce the bug… I don’t know, paste some code that Cursor thinks is bad, so that it wants to replace it with something it thinks is better?

Cursor version:
Version: 0.44.11
VSCode Version: 1.93.1
Commit: fe574d0820377383143b2ea26aa6ae28b3425220
Date: 2025-01-03T07:59:06.361Z (2 wks ago)
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin x64 21.6.0

I’m running MacOS 12.7

Please give us an option to dismiss a Code Action. I really can’t work like this and I’m going to be using something else to actually write and use Cursor merely as a way to show my code to AI - which is okay, but display real estate is in short supply for me, so it is a bit annoying to have to switch windows for that, too.

1 Like

Hey, thanks for reporting this issue. We’re constantly working to improve the UX, and I hope we’ll fix this soon.

Same here, it happens frequently making it very annoying. Is there any way to stick to ghost text instead of overlay?

The right bar it is rendering over is the chat