{"version":"2.1.232","anchor":"directory-sync-releases-its-file-handle-even-when-the-apply-","canonical_anchor":"directory-sync-releases-its-file-handle-even-when-the-apply-","heading":"Directory sync releases its file handle even when the apply crashes","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.232\/e\/directory-sync-releases-its-file-handle-even-when-the-apply-","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.232","markdown":"### Directory sync releases its file handle even when the apply crashes\n\nDirectory sync now releases its file handle even if applying changes crashes.\n\n**What**\n\nThe directory sync step now closes the handle it holds on the staged file list in a `finally` block, so a crash mid-apply no longer leaks it. Previously it was only released on the normal return path.\n\n**Evidence**\n\n`dir_sync_apply_crashed`\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}