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

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

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
:lady_beetle: Provide a clear description of the bug
:counterclockwise_arrows_button: 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.
:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
MacOS, cursor version 0.49.5
:prohibited: 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.

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.