{"version":"2.1.328","anchor":"repl-edit-failures-print-a-read-back-hint","canonical_anchor":"repl-edit-failures-print-a-read-back-hint","heading":"Failed edits in the REPL can now show what the file actually contains","tier":"notice","area":"REPL","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/repl-edit-failures-print-a-read-back-hint","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Failed edits in the REPL can now show what the file actually contains\n\nWhen a REPL edit fails because its text was not found or matched more than once, Claude Code can re-read the file and print a warning\n\n**What**\n\nThe REPL is the place where Claude can run small scripts that work on your files. When an edit made there fails, Claude Code can now re-read the file and print a warning that helps explain the failure. This happens for two errors:\n\n- The text to replace was not found in the file.\n\n- The text to replace matched more than one place in the file.\n\nClaude Code re-reads the file only when it can do so without asking you for permission. If only part of the file could be read and that read failed, Claude Code prints a warning about that as well. Before this change, the edit returned the error and nothing more.\n\n**Why**\n\nA failed edit is easier to understand and fix when the warning shows what is actually in the file.\n\n- Area: REPL\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}