{"version":"2.1.324","anchor":"cloud-session-post-session-hook-checks-session-folders-are-p","canonical_anchor":"cloud-session-post-session-hook-checks-session-folders-are-p","heading":"Cloud sessions check their folders before the post-session hook runs","tier":"notice","area":"Cloud Sessions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/cloud-session-post-session-hook-checks-session-folders-are-p","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Cloud sessions check their folders before the post-session hook runs\n\nIn cloud sessions, the post-session hook is skipped and an error logged if a session folder is not an ordinary directory\n\n**What**\n\nIn cloud sessions, Claude Code now checks that the session's folders, and the folders above them, are ordinary directories. It does this before the session starts and again before the post-session hook runs. A hook is a command set to run at a given point. If a folder fails the check, the hook does not run and an error is logged. Before, one simpler check ran and the hook ran without it.\n\n**Why**\n\nThis guards against a folder being swapped for a shortcut (a symbolic link) that points somewhere else.\n\n- Area: Cloud Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}