Skip to content

feat(site): copy PR branch name from git panel#25589

Open
aslilac wants to merge 1 commit into
mainfrom
lilac/copy-pr-branch
Open

feat(site): copy PR branch name from git panel#25589
aslilac wants to merge 1 commit into
mainfrom
lilac/copy-pr-branch

Conversation

@aslilac
Copy link
Copy Markdown
Member

@aslilac aslilac commented May 21, 2026

Adds a copy button next to the PR branch name in the agents git side panel, so it can be checked out locally without manually copying from the address bar.

Surfaces in the RemoteDiffPanel header whenever a head branch is known. Click copies the branch, the icon flips to a check for a moment, and a tooltip explains the action for keyboard and screen-reader users.

Implementation notes
  • New BranchCopyButton colocated in RemoteDiffPanel.tsx reuses the existing useClipboard hook so HTTP fallback and toast errors come along for free.
  • Storybook PullRequestAndWorkingChanges story asserts the button is rendered with the head branch in its aria-label.

Authored by Coder Agents on behalf of @aslilac.

@aslilac aslilac marked this pull request as ready for review May 21, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant