{"version":"2.1.332","anchor":"teleport-branch-checkout-gated-by-tengu-cosmic-wren","canonical_anchor":"teleport-branch-checkout-gated-by-tengu-cosmic-wren","heading":"Teleported sessions can check out branches a new way","tier":"internal","area":"Teleport","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/teleport-branch-checkout-gated-by-tengu-cosmic-wren","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Teleported sessions can check out branches a new way\n\nA remotely controlled switch can make teleported sessions check out a branch using a local branch or the remote one, and set upstream tracking\n\n**Unclear.** What the switch controlling the new checkout falls back to when the server sends nothing is not known.\n\n**What**\n\nTeleporting moves a session so it carries on in your local copy of the repository, which means Claude Code has to check out the session's branch. A remotely controlled switch can now turn on a different way of doing this:\n\n- It looks for a local branch with that name first.\n\n- If there is none, it falls back to the copy of the branch from the remote repository.\n\n- It then creates the branch with `checkout -b` and sets it to track the remote one (its upstream).\n\nWhen the switch is off, the old checkout runs. When the sandbox (the restricted environment that limits what commands may do) refuses the checkout, the suggested command is now `git switch --no-guess <branch>`.\n\n**Why**\n\nThis changes how a branch from the remote repository is checked out when a teleported session starts.\n\n- Area: Teleport\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}