Cannot edit big files

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When the agent uses the edit tool on a huge file (in the megabytes range) the tool call fails with:

“maximum call stack size exceeded”

Steps to Reproduce

Open a big file like the SQLite amalgamation and ask the agent to modify a single line

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.42
VSCode Version: 1.99.3
Commit: 5911e9593196a000b1c00553aaf03b0b32042b90
Date: 2025-09-20T17:16:56.346Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 22.1.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, which model are you using? Also, please update to version 1.7 and let me know if the issue still persists.

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