{"version":"2.1.334","anchor":"edit-tool-repeated-match-refusal-is-now-structured","canonical_anchor":"edit-tool-repeated-match-refusal-is-now-structured","heading":"Edit refusals for text that appears more than once now include the match count","tier":"notice","area":"File Editing","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/edit-tool-repeated-match-refusal-is-now-structured","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Edit refusals for text that appears more than once now include the match count\n\nWhen the text to replace appears several times and `replace_all` is off, the Edit tool now gives a structured refusal with the match count\n\n**What**\n\nThe Edit tool changes text in a file. When the text to replace appears more than once and `replace_all` is false, Edit refuses to make the change. That refusal now has a newly worded message and also records the reason (the text is repeated) together with the number of matches. Before, it was a single line of text, and the code that built that line contained a fault.\n\n**Why**\n\nThe refusal is now recorded in a structured form, and the error wording Claude sees may be different.\n\n- Area: File Editing\n- Names: `replace_all`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}