{"version":"2.1.333","anchor":"task-file-updates-guarded-by-a-gate-with-a-new-safe-write-p","canonical_anchor":"task-file-updates-guarded-by-a-gate-with-a-new-safe-write-p","heading":"Task files are protected against holding the wrong task or link tricks","tier":"notice","area":"Background Tasks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/task-file-updates-guarded-by-a-gate-with-a-new-safe-write-p","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Task files are protected against holding the wrong task or link tricks\n\nBehind a remote switch, updating a task whose file holds a different task is refused, and task files are written more carefully\n\n**Unclear.** Whether the task-file check is on when the server sends nothing is not known.\n\n**What**\n\nClaude Code stores tasks (items on its to-do list) in files. Behind a remote switch, updating a task is now refused when its file holds a different task, with a message saying the file \"does not hold this task.\"\n\nThere is also a safer way of writing task files. Claude Code keeps hold of the folder while writing, checks the file again just before writing, and refuses to write to a file that is hard-linked (a second name pointing at the same file on disk).\n\n**Why**\n\nThis protects task files against link tricks and against a file that ends up holding the wrong task.\n\n- Area: Background Tasks\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}