{"version":"2.1.280","anchor":"file-read-path-switched-to-explicit-resource-disposal-await","canonical_anchor":"file-read-path-switched-to-explicit-resource-disposal-await","heading":"File-read path switched to explicit resource disposal (await using)","tier":"internal","area":"Elsewhere","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/file-read-path-switched-to-explicit-resource-disposal-await","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### File-read path switched to explicit resource disposal (await using)\n\nFile reading now closes file handles automatically using JavaScript's explicit resource management\n\n**What**\n\nWhen Claude Code reads a file's content, character encoding, or line-ending style, it now opens the file using the `await using` syntax. This is a JavaScript feature for explicit resource management, meaning the file handle is automatically and reliably closed once the operation finishes, rather than being closed manually in the code. The actual work of reading and decoding the file has also been moved into a dedicated helper function instead of being handled inline.\n\n**Why**\n\nThis is an internal reliability improvement: automatic cleanup of file handles reduces the chance of resource leaks if an error occurs partway through reading a file. It should not change what Claude Code shows you, only make file reading more robust under the hood.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}