@@ -36,6 +36,7 @@ import { |
36 | 36 | CircleDashedIcon, |
37 | 37 | CircleDotDashedIcon, |
38 | 38 | ClockIcon, |
| 39 | + FolderGit2Icon, |
39 | 40 | GitBranchIcon, |
40 | 41 | MessageCircleQuestionIcon, |
41 | 42 | PinIcon, |
@@ -89,7 +90,6 @@ import { resolveLocalCheckoutBranchMismatch } from "../BranchToolbar.logic"; |
89 | 90 | import { |
90 | 91 | ThreadPullRequestBadgeControl, |
91 | 92 | ThreadPullRequestsMiniList, |
92 | | - ThreadWorktreeIndicator, |
93 | 93 | prStatusIndicator, |
94 | 94 | resolveThreadPullRequestBadge, |
95 | 95 | terminalStatusFromRunningIds, |
@@ -290,7 +290,11 @@ function SidebarThreadTooltip({ |
290 | 290 | ) : null} |
291 | 291 | {thread.branch ? ( |
292 | 292 | <div className="flex min-w-0 items-center gap-2"> |
293 | | - <GitBranchIcon className="size-3 shrink-0 stroke-muted-foreground" /> |
| 293 | + {thread.worktreePath ? ( |
| 294 | + <FolderGit2Icon className="size-3 shrink-0 stroke-muted-foreground" /> |
| 295 | + ) : ( |
| 296 | + <GitBranchIcon className="size-3 shrink-0 stroke-muted-foreground" /> |
| 297 | + )} |
294 | 298 | <MiddleTruncate value={thread.branch} className="flex" /> |
295 | 299 | </div> |
296 | 300 | ) : null} |
@@ -1438,13 +1442,13 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP |
1438 | 1442 | ) : null} |
1439 | 1443 | </div> |
1440 | 1444 | <div className="mt-0.5 flex min-w-0 items-center gap-1.5 text-secondary-label text-xs"> |
1441 | | - {thread.branch ? ( |
1442 | | - <> |
1443 | | - <ThreadWorktreeIndicator thread={thread} /> |
1444 | | - <span className="flex min-w-0 flex-1 text-muted-foreground/40"> |
1445 | | - <MiddleTruncate value={thread.branch} showTitle={false} /> |
1446 | | - </span> |
1447 | | - </> |
| 1445 | + {/* The PR takes the branch's slot; the hover card still shows the branch. */} |
| 1446 | + {prBadge ? ( |
| 1447 | + prBadge |
| 1448 | + ) : thread.branch ? ( |
| 1449 | + <span className="flex min-w-0 flex-1 text-muted-foreground/40"> |
| 1450 | + <MiddleTruncate value={thread.branch} showTitle={false} /> |
| 1451 | + </span> |
1448 | 1452 | ) : showsScratchMachine ? ( |
1449 | 1453 | <> |
1450 | 1454 | <EnvironmentMachineIcon |
@@ -1460,7 +1464,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP |
1460 | 1464 | <span className="flex-1" /> |
1461 | 1465 | )} |
1462 | 1466 | {terminalStatusIcon} |
1463 | | - {prBadge} |
1464 | 1467 | {diff ? ( |
1465 | 1468 | <span className="shrink-0 font-mono"> |
1466 | 1469 | <span className="text-diff-addition-foreground"> |
|