Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:
File Attachment Requirements Limiting AI Assistant’s edit_file Functionality
Description
The AI assistant’s edit_file
tool is currently limited by a requirement for files to be “manually attached” to the conversation. This creates unnecessary friction in the workflow and forces fallback to terminal commands requiring manual approval.
Current Behavior
edit_file
tool works for creating new filesedit_file
fails silently when trying to modify existing files- Error message indicates files need to be “manually attached to the conversation”
- Forces fallback to terminal commands with
require_user_approval
Expected Behavior
Files in the workspace should automatically be available for the AI assistant to edit using the edit_file
tool, while maintaining appropriate security boundaries.
Steps to Reproduce
- Create a new file using
edit_file
- works successfully - Try to modify the same file using
edit_file
- fails silently - Read file shows message: “File is not in the list of files that have been manually attached to the conversation”
Impact
- Reduces efficiency of AI assistant interactions
- Creates inconsistent behavior across chat contexts
- Forces use of less secure terminal commands
- Requires more user intervention
Suggested Solution
Implement automatic file attachment for:
- Files created in the workspace
- Files opened in the editor
- Files modified through any workspace tool
This would maintain security (files still within workspace) while improving workflow efficiency.
Environment
- OS: macOS 24.3.0
- Shell: /bin/zsh
Check the forum to ensure the issue hasn’t been reported already
Provide a clear description of the bug
Explain how to reproduce the bug (if known)
Attach screenshots or recordings (e.g.,
.jpg
, .png
, .mp4
).
Tell us your operating system and your Cursor version (e.g.,
Windows, 0.x.x
).
Tell us if the issue stops you from using Cursor.