How to edit more than 500 lines

How to let 3.7 sonnet edit a file with more than 500 lines? It always cut-off automatically with “Error calling tool.” at ~500 lines of edit.

This is too dissappointing.

1 Like

Limit of context window bro. You need use more request, dont use only one, it is cannot