{"version":"2.1.315","anchor":"chdir-rollback-helper-and-a-directory-move-fix","canonical_anchor":"chdir-rollback-helper-and-a-directory-move-fix","heading":"Moving a session's folder now undoes itself if the new folder is refused","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/chdir-rollback-helper-and-a-directory-move-fix","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### Moving a session's folder now undoes itself if the new folder is refused\n\nWhen moving a session to another folder fails partway, Claude Code now switches back to the previous folder\n\n**What**\n\nEvery session has a working directory, the folder Claude Code treats as \"here\". When Claude Code moves a session to another folder, it does two things: it changes folder, then it records the new folder as the session's current one. If that second step refuses the new folder, Claude Code now changes back to the previous folder. Before, the two steps ran separately and nothing was undone.\n\nIf changing back also fails, Claude Code reports that it is still in the refused folder.\n\n**Why**\n\nA failed move no longer leaves the session in a folder different from the one it thinks it is in.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}