[BUG] Multiedit tool failure
Environment
- Claude CLI version: Claude Code Status v1.0.67
L Session ID: aba9a098-5701-44b7-b485-a0811bd9257c
Working Directory
L /Users/philipblack/Dev/Cormirus/obvious-choice-strategy-platform
IDE Integration • /config
✔ Connected to Cursor extension
L Installed Cursor extension version 1.0.67 (server version: 1.0.57)
Account • /login
L Login Method: Claude Max Account
L Organization: Philip Black
L Email: phil@cormirus.com
Memory • /memory
L project: CLAUDE.md
Model • /model
L Default Opus 4 for up to 50% of usage limits, then use Sonnet 4 (currently Opus)
- Operating System: macOS 14.6.1 (23G93)
- Terminal: Cursor Term
Bug Description
Multi edit tool very rary works for me.
In this case I was trying to remove multiple debug end points from my app. Claude identified the start/end line num for the three of them. Multiedit corrupted the file and needed to go back to git to restore losing previous changes. The problem, as I see it is that it always starts trying to remove the first line numbers, but that will always change the subsequent lines. If it started from the highest line numbers then it would always work as the line numbers would remain the same as it cycles backwards.
Steps to Reproduce
- Identify a class of code to remove that would lead to multiple selections/ranges
Expected Behavior
All three sections to be removed cleanly in one go. Otherwise the multi edit tool is useless - which has been my experience so far.
Actual Behavior
Corrupted file
Additional Context
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗