Agent not calling edit_file tool, instead generating custom terminal commands for file editing

Describe the Bug

The AI agent is expected to use the edit_file tool for modifying files.
However, instead of invoking the tool, it generates custom terminal commands to edit files manually. This makes it so that I cant review the changes it makes and approve them.

Steps to Reproduce

Prompt the agent to edit an existing file.

Observe the agent’s response.

Notice that the agent generates custom shell commands (e.g., sed, echo > filename) instead of calling the edit_file tool.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.3 (user setup)
VSCode Version: 1.99.3
Commit: e50823e9ded15fddfd743c7122b4724130c25df0
Date: 2025-08-08T17:34:53.060Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. Which model are you using? Does this also happen in new chats? Also, could you share the request ID? First, you’ll need to disable privacy mode.

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