Z-index Bug: "Add to Chat" hidden behind code suggestion overlay

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The Cursor “Add to Chat” Modal is behind the overlays for code suggestions (z-index issue). And can’t be clicked.

Steps to Reproduce

get any code suggestion, then try to select a text in a code suggestion block and wait for the popover “add to chat | quick edit” to appear

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.26
VSCode Version: 1.105.1
Commit: f628a4761be40b8869ca61a6189cafd14756dff0
Date: 2025-11-24T05:39:06.655Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Hey, thanks for the report. I can’t reproduce this issue. Could you please update to version 2.1.39 and check if the issue persists?

I just updated, yet the popover still renders below the suggestions, and also no longer correctly placed next to the lines marked, but e.g. offset. see my highlighted text that triggered the popover to appear, and where the “Add to chat” popover is actually rendered.

Version: 2.1.39
VSCode Version: 1.105.1
Commit: 60d42bed27e5775c43ec0428d8c653c49e58e260
Date: 2025-11-27T02:30:49.286Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.5.0
1 Like

.cursorHoverWidget has a z-index of 100000

.removed-lines-zone-widget has a z-index of 10
.inline-diff-removed has a z-index of 1

the z-index has no effect, as the cursorHoverWidget is not in e.g. toplayer and on a lower level in the DOM.

removals are part of overlayWidgets
but additions are part of view-overlays

1 Like

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