@@ -8,7 +8,7 @@ import { Button } from '@/components/ui/button'
88import { cn , getRepoDisplayName } from '@/lib/utils'
99import { listRepos } from '@/api/repos'
1010import { AddRepoDialog } from '@/components/repo/AddRepoDialog'
11- import { FolderGit2 , Check , Plus } from 'lucide-react'
11+ import { FolderGit2 , Check , Plus , GitBranch } from 'lucide-react'
1212import { useUrlParams } from '@/hooks/useUrlParams'
1313import { ASSISTANT_REPO_ID } from '@opencode-manager/shared/utils'
1414import { getAssistantPath , isAssistantPath } from '@/lib/navigation'
@@ -123,6 +123,7 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr
123123 < div className = "flex flex-col gap-2" >
124124 { filteredRepos . map ( ( repo ) => {
125125 const isActive = repo . id === activeRepoId
126+ const branchToDisplay = repo . currentBranch || repo . branch
126127 return (
127128 < button
128129 key = { repo . id }
@@ -146,8 +147,21 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr
146147 < FolderGit2 className = "h-4 w-4" />
147148 </ div >
148149 </ div >
149- < div className = "flex-1 min-w-0 font-medium text-sm text-foreground truncate" >
150- { getRepoDisplayName ( repo ) }
150+ < div className = "flex-1 min-w-0" >
151+ < div className = "font-medium text-sm text-foreground truncate" >
152+ { getRepoDisplayName ( repo ) }
153+ </ div >
154+ { branchToDisplay && (
155+ < div
156+ className = { cn (
157+ 'flex items-center gap-1 text-xs' ,
158+ repo . isWorktree ? 'text-purple-400' : 'text-muted-foreground' ,
159+ ) }
160+ >
161+ < GitBranch className = "h-3 w-3 shrink-0" />
162+ < span className = "truncate" > { branchToDisplay } </ span >
163+ </ div >
164+ ) }
151165 </ div >
152166 { isActive && < Check className = "h-4 w-4 text-primary flex-shrink-0" /> }
153167 </ button >
0 commit comments