diff --git a/src/components/chat/conversation-context-bar.tsx b/src/components/chat/conversation-context-bar.tsx index aece189..203caac 100644 --- a/src/components/chat/conversation-context-bar.tsx +++ b/src/components/chat/conversation-context-bar.tsx @@ -301,21 +301,28 @@ const BranchPicker = memo(function BranchPicker({ count: branchList.remote.length, })} > - {branchList.remote.map((b) => ( - { - setOpen(false) - void onCheckout(b) - }} - > - - - {b} - - - ))} + {branchList.remote.map((b) => { + const localName = b.replace(/^[^/]+\//, "") + return ( + { + setOpen(false) + if (localName !== currentBranch) + void onCheckout(localName) + }} + > + + + {b} + + {localName === currentBranch && ( + + )} + + ) + })} )}