{"version":"2.1.337","anchor":"writefileandflush-drops-the-stagingdir-restriction-when-held","canonical_anchor":"writefileandflush-drops-the-stagingdir-restriction-when-held","heading":"Safe file writing can now use a temporary file beside the target","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/writefileandflush-drops-the-stagingdir-restriction-when-held","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Safe file writing can now use a temporary file beside the target\n\nA safer way Claude Code writes files can now be combined with a temporary file placed next to the file being written\n\n**What**\n\nClaude Code has a careful way of writing files that keeps hold of the folder the file is in while it writes. That way of writing could not be used together with a temporary file placed next to the target. It now can, and the temporary file is opened from within the folder being held. It still cannot be combined with following links or with only creating new files.\n\n**Why**\n\nThis is a change inside the code that keeps file writing safe.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}