Add file to chat not working

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Sometimes I am unable to add a file to cursor chat. I’m attempting to do that by right clicking on the file in the left panel that displays all the files in the project, and clicking “add file to cursor chat”

Steps to Reproduce

It seems to be quite constant for me. “Add file to New Cursor Chat” seems to work reasonably reliably

Expected Behavior

The file is meant to be added to the cursor chat.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.4.36
VSCode Version: 1.105.1
Commit: f9919bf991f247689f9ead605b5c5a3239a2a790
Date: 2026-02-12T21:00:33.976Z
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

For AI issues: which model did you use?

N/A

Does this stop you from using Cursor

No - Cursor works, but with this issue

Also, possibly as a feature request, is there a way to add the current file open in the editor window to chat?

Hey, thanks for the report. This is a known issue. The “Add file to Cursor Chat” right-click option can be unreliable, especially in Agent mode.

A couple of workarounds:

  1. Type @ in the chat input and search for the file by name. This is more reliable than the context menu.
  2. You can also drag files from the sidebar directly into the chat.

About adding the currently open file. Yes, just type @ in chat and start typing the filename. The file you have open usually shows up near the top of the suggestions list.

Thanks. I’m trying to limit my typing due to RSI/being lazy.

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