{"version":"2.1.333","anchor":"teleport-branch-checkout-refused-in-untrusted-folders-and-wh","canonical_anchor":"teleport-branch-checkout-refused-in-untrusted-folders-and-wh","heading":"Teleport refuses to check out a branch in untrusted folders or where it could overwrite outside files","tier":"notice","area":"Teleport","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/teleport-branch-checkout-refused-in-untrusted-folders-and-wh","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Teleport refuses to check out a branch in untrusted folders or where it could overwrite outside files\n\nTeleporting a cloud session's branch is now refused in an untrusted folder or when the checkout could replace files outside that folder\n\n**What**\n\nTeleport brings a session that ran in the cloud onto your own computer, which includes checking out that session's git branch in your local folder. Before, the only time Claude Code refused that checkout was inside a sandbox, a restricted mode that limits what commands can touch. It now also refuses in these cases:\n\n- The checkout could replace files outside the folder, such as shell configuration, SSH keys or settings files.\n\n- The folder is not trusted. The message for this case mentions the `IS_DEMO`, `CI` and `CLAUDE_CODE_IGNORE_PERSISTED_TRUST` environment variables.\n\n- The folder's `origin` remote fetches from a different repository than the session's.\n\nIn the last case there is a fallback that checks out the local branch without fetching it first.\n\n**Why**\n\n`--teleport` now behaves differently in untrusted folders or unusual copies of a repository. Instead of doing the checkout itself, Claude Code stops and gives you a command you can run yourself.\n\n- Area: Teleport\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}