{"version":"2.1.327","anchor":"edit-tool-renews-the-read-after-compaction","canonical_anchor":"edit-tool-renews-the-read-after-compaction","heading":"Edits keep working on files whose earlier read was compacted away","tier":"notice","area":"Edit Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/edit-tool-renews-the-read-after-compaction","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Edits keep working on files whose earlier read was compacted away\n\nIf an earlier read of a file was compacted away, Edit now notices, re-checks permission and renews the read after it writes\n\n**What**\n\nThe Edit tool changes files, and it relies on Claude having read the file earlier in the conversation. Compaction is when Claude Code shortens a long conversation by summarizing older parts, and it can remove that earlier read.\n\nEdit now notices when it relied on a read that compaction removed. It checks whether that read is allowed to happen automatically. After the edit is written successfully, it renews the record of the read and marks the file as only partly seen. Before, Edit only carried over whether the earlier read had been partial.\n\n**Why**\n\nIn practice this targets edits that would otherwise fail with a \"file not read\" error after a long conversation has been compacted.\n\n- Area: Edit Tool\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}