{"version":"2.1.280","anchor":"file-index-rebuild-now-guards-against-a-stale-cwd","canonical_anchor":"file-index-rebuild-now-guards-against-a-stale-cwd","heading":"File index rebuild now guards against a stale cwd","tier":"internal","area":"Elsewhere","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/file-index-rebuild-now-guards-against-a-stale-cwd","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### File index rebuild now guards against a stale cwd\n\nFile index rebuild now bails out if the working directory has changed\n\n**What**\n\nThe helper that rebuilds Claude Code's tracked-file index now takes an explicit current working directory argument. If that directory doesn't match the one the index was last normalized against, the rebuild stops early, before doing any signature comparison or actual rebuild work.\n\n**Why**\n\nThis guards against rebuilding the file index using a stale or mismatched working directory, which should prevent incorrect or wasted rebuild work when the working directory has changed.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}