You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Cloud SessionsArea: what it touches
ImprovementsKind: in v2.1.328,
ImprovementsSection of the release
What
When 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:
This isn't the folder that the app checked, so Claude Code stopped.
The 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.
Why
It 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.