# Apply Edit Model doesn't work on Long context file (4517lines).(MacOS, 0.49.5)

**URL:** <https://forum.cursor.com/t/apply-edit-model-doesnt-work-on-long-context-file-4517lines-macos-0-49-5/84196>\
**Category:** Bug Reports\
**Created:** [April 27, 2025, 1:58am UTC](https://forum.cursor.com/t/apply-edit-model-doesnt-work-on-long-context-file-4517lines-macos-0-49-5/84196 "2025-04-27T01:58:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pe653](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/pe653/32/50313_2.png) [@pe653](https://forum.cursor.com/u/pe653)\
**Post date:** [April 27, 2025, 1:58am UTC](https://forum.cursor.com/t/apply-edit-model-doesnt-work-on-long-context-file-4517lines-macos-0-49-5/84196/1 "2025-04-27T01:58:55Z")

</div>

Thanks for reporting a bug you have found in Cursor!  
Please add the following info to help us diagnose your issue:

✅ **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)  
It is hard for Agent(auto or claude3.7) to edit long python file(4517 lines). Apply Model never succeeded recently. It works in 2 or 3 versions before in my memory.  
📷 Attach **screenshots or recordings** (e.g., `.jpg`, `.png`, `.mp4`).

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/8/d810854616405a5a8db09ba0c5a13c12fe9a0d86.png)

💻 Tell us your operating system and your **Cursor version** (e.g., `Windows, 0.x.x`).  
MacOS, cursor version 0.49.5  
🚫 Tell us if the issue stops you from using Cursor.  
I would use Cursor of course. It is my daily companion now. I love it.

---

<div class="post-metadata">

**Author:** ![pe653](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/pe653/32/50313_2.png) [@pe653](https://forum.cursor.com/u/pe653)\
**Post date:** [April 27, 2025, 4:41am UTC](https://forum.cursor.com/t/apply-edit-model-doesnt-work-on-long-context-file-4517lines-macos-0-49-5/84196/2 "2025-04-27T04:41:43Z")

</div>

## Ok, I solved the problem. The conclusion is as below.

1. It is due to the context window for Claude 3.5, 3.7 and auto, I guess.
2. The long context(large files) edit apply model works very well when I selected gemini-2.5-pro-exp-03-25. Same large files (\>4100 lines), it handles applying edit smoothly. At least, no error cycle.  
Gemini job Request ID: 61697059-fc03-4e22-91f4-7b9bfa24190f
3. o3, gpt-4.1, and deepseek-R1 are not tested so far.

I guess it is due to the cost or bargain contract between cursor and anthropic. Please provide premium service tier(40$?) for longer context window, or I have to move to gemini or other models from claude.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 27, 2025, 4:41am UTC](https://forum.cursor.com/t/apply-edit-model-doesnt-work-on-long-context-file-4517lines-macos-0-49-5/84196/3 "2025-05-27T04:41:56Z")

</div>

Closed on May 27, 2025, 4:41am UTC

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