Teleport won't check out a branch when origin points to a different repository
When teleporting a session, Claude Code no longer checks out its branch if origin fetches from a different repository, and shows commands to do it yourself
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
TeleportArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What
When Claude Code teleports a session and checks out its branch, it now compares the session's repository with the one your origin remote fetches from. A remote is a named link to a copy of the repository elsewhere, and origin is usually the main one. If the two differ, Claude Code reports that the branch was not checked out and prints git commands you can run by hand, using origin's push address.
This check is controlled by a remote switch.
Why
If origin points at a fork that belongs to someone else, Claude Code could otherwise fetch a branch with the same name from the wrong place.