Group of 2 You'll notice
Claude Code now detects the head/source branch of gh/glab PR creations and reports it as the branch a new change was opened from
What
- The code that scans bash command output for
gh pr create/glab mr createinvocations to link a session to a pull request was rewritten to also extract the target branch, from a--head/-H(gh) or--source-branch/-s(glab) flag, and validate it as a safe git ref before using it. - The
branchfield reported to a host for VCS changes is now documented to carry this branch information more broadly: not just for providers without their own head-branch concept (like Gerrit), but for any provider when the change's kind iscreated, using the branch the create was opened from.
Why This lets a host display the branch a newly created pull request or change came from immediately, before the host's own lookup against the forge (like GitHub or GitLab) responds.