Multiple edits should start from the bottom of a file in filesystem server #1591
Labels
bug
Something isn't working
server-filesystem
Reference implementation for the Filesystem MCP server - src/filesystem
Describe the bug
A clear and concise description of what the bug is.
When editing, the assistant frequently tries to create multiple edits, but if an edit changes the line numbering all the subsequent edits fail, and then it iterates, re-reading, trying again, often deciding that it has to just rewrite the entire file, which can be slow
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
multiple edits to work
Logs
If applicable, add logs to help explain your problem.
Additional context
Add any other context about the problem here.
I have found that by telling the assistant to explicitly start from the bottom it mostly works
The text was updated successfully, but these errors were encountered: