{"version":"2.1.280","anchor":"directory-sync-consent-now-double-checks-the-working-root-ma","canonical_anchor":"directory-sync-consent-now-double-checks-the-working-root-ma","heading":"Directory-sync consent now double-checks the working root matches the session's directory","tier":"notice","area":"Directory Sync","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/directory-sync-consent-now-double-checks-the-working-root-ma","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### Directory-sync consent now double-checks the working root matches the session's directory\n\nDirectory sync now checks the git root actually matches the session's directory before granting consent\n\n**What**\n\nBefore granting consent to sync a directory, Claude Code now double-checks that the git root found by walking up from that path is the same directory the session's sync engine is actually anchored to. If it's not, consent is treated as withdrawn and a warning is logged.\n\n**Why**\n\nThis guards against directory sync operating against the wrong project if the expected `.git` directory has moved or doesn't match what the session was set up for, rather than silently syncing an unintended location.\n\n- Area: Directory Sync\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}