Skip to content
TypeScript

fix(web): show worktree icon in sidebar v2 (#5909)

Tristan Knight0ca9fb3fb5c7
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx
index 75f7c9e58c5..a2dda3b764b 100644
--- a/apps/web/src/components/Sidebar.tsx
+++ b/apps/web/src/components/Sidebar.tsx
@@ -137,6 +137,7 @@ import {
} from "./Sidebar.logic";
import { resolveLocalCheckoutBranchMismatch } from "./BranchToolbar.logic";
import {
+ ThreadWorktreeIndicator,
prStatusIndicator,
resolveThreadPr,
settledPrHoverColorClass,
@@ -1412,7 +1413,10 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
working, but it truncated to a half-sentence and dropped the
branch, so the row lost its most stable identifier. */}
{thread.branch ? (
- <span className="min-w-0 flex-1 truncate whitespace-nowrap">{thread.branch}</span>
+ <>
+ <ThreadWorktreeIndicator thread={thread} />
+ <span className="min-w-0 flex-1 truncate whitespace-nowrap">{thread.branch}</span>
+ </>
) : (
<span className="flex-1" />
)}