{"version":"2.1.327","anchor":"diff-root-reads-accept-rootid-stale-root-id-error","canonical_anchor":"diff-root-reads-accept-rootid-stale-root-id-error","heading":"Workspace diff reads are refused if the folder has changed underneath them","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/diff-root-reads-accept-rootid-stale-root-id-error","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Workspace diff reads are refused if the folder has changed underneath them\n\nReads tied to a workspace diff can now carry an ID for its root folder, and are refused with stale_root_id if that root has changed\n\n**What**\n\nA workspace diff shows what changed in your working folder. Reads made relative to that diff's root folder can now include a root ID taken from `get_workspace_diff`. If the ID no longer matches, the read is refused with the error code `stale_root_id`.\n\n**Why**\n\nThis stops a read from quietly landing in a folder that has changed since the diff was taken.\n\n- Area: Elsewhere\n- Names: `get_workspace_diff`, `stale_root_id`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}