{"version":"2.1.284","anchor":"write-tool-content-can-be-rewritten-at-permission-time-and","canonical_anchor":"write-tool-content-can-be-rewritten-at-permission-time-and","heading":"Write tool compares file contents with line endings taken into account","tier":"internal","area":"Tools","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.284\/e\/write-tool-content-can-be-rewritten-at-permission-time-and","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.284","markdown":"### Write tool compares file contents with line endings taken into account\n\nThe Write tool may now adjust its content during the permission check, and it takes the file's line-ending style into account when comparing two writes\n\n**Unclear.** It is not clear what the transformation applied to the content during the permission check actually does.\n\n**What**\n\nThe Write tool lets Claude create a file or replace a file's contents. When Claude Code checks whether a write is allowed, it now runs a transformation on the new content. If that changes the content, the changed version is what goes ahead.\n\nClaude Code also changed how it decides whether two write requests are the same. It used to ignore trailing blank lines and compare the text directly. It now first adjusts the content to match the file's line-ending style. The line-ending style is the invisible character that ends each line, which is different on Windows (CRLF) and on macOS and Linux.\n\n**Why**\n\nThis mostly affects files that use Windows-style line endings. Two writes that differ only in how lines end can now count as the same.\n\n- Area: Tools\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}