{"version":"2.1.328","anchor":"cloud-sessions-verify-the-working-folder-the-host-checked","canonical_anchor":"cloud-sessions-verify-the-working-folder-the-host-checked","heading":"--cloud launches stop if the folder is not the one the app checked","tier":"notice","area":"Cloud Sessions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/cloud-sessions-verify-the-working-folder-the-host-checked","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### `--cloud` launches stop if the folder is not the one the app checked\n\nWith `--cloud`, Claude Code now stops if the current folder differs from the one the launching app checked\n\n**What**\n\nWhen Claude Code starts with `--cloud`, the option that creates or messages a cloud session, it now checks the folder it is running in. If `CLAUDE_CODE_HOST_CHECKED_FOLDER` is set, Claude Code compares the current folder's identity on disk and its path with the value the launching app recorded. If they differ, it stops with:\n\nThis isn't the folder that the app checked, so Claude Code stopped.\n\nThe check is skipped inside another Claude Code session or a child session. Claude Code removes the variable from its environment once it has read it.\n\n**Why**\n\nIt stops someone from swapping in a different folder in the moment between the app checking that folder is trusted and Claude Code starting in it.\n\n- Area: Cloud Sessions\n- Names: `CLAUDE_CODE_HOST_CHECKED_FOLDER`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}