Images added to chat history get added to repo history and get committed to git with commits. In case a secrets was shared for agent to work on locally they also gets committed to git, this creates a security risk.
Steps to Reproduce
paste an image into context window it gets copied into assets directory in the repo
Expected Behavior
Any image added as context to conversation should not be stored in the repo.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Cursor generates a 0 byte image file in the /assets folder of my project every time I upload a screenshot via the chat sidebar.
Steps to Reproduce
Take any screenshot, and paste it into the chat sidebar, within moments you will notice a new 0 byte image in version control. The images all names in the form “image-[UUID].png.”