{"version":"2.1.334","anchor":"edit-tool-error-now-varies-depending-on-whether-old-string-i","canonical_anchor":"edit-tool-error-now-varies-depending-on-whether-old-string-i","heading":"Edit failures that change nothing now give one of two different messages","tier":"notice","area":"File Editing","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/edit-tool-error-now-varies-depending-on-whether-old-string-i","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Edit failures that change nothing now give one of two different messages\n\nWhen an edit leaves a file unchanged, the error now depends on whether the text to replace was found in the file\n\n**What**\n\nThe Edit tool is how Claude changes text in a file by replacing one piece of text, called `old_string`, with another. Sometimes an edit would leave the file exactly as it was. The error Claude Code reports then now depends on whether the file actually contains `old_string`, so there are two messages where there used to be one.\n\n**Why**\n\nClaude gets more precise feedback about why an edit did nothing.\n\n- Area: File Editing\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}