diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx
index 65ac1cf7752c..9cee123e4ecf 100644
--- a/apps/web/src/components/Sidebar.tsx
+++ b/apps/web/src/components/Sidebar.tsx
@@ -1584,10 +1584,10 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
useRightPanelStore.getState().open(threadRef, "pull-requests");
if (!props.isActive) onThreadActivate(threadRef);
}, [onThreadActivate, props.isActive, threadRef]);
- const renderPrBadge = (iconOnly: boolean) =>
+ const renderPrBadge = (iconOnly: boolean, variant: "underline" | "badge" = "underline") =>
prBadgeShape?.kind === "stack" || pr || currentLinkedPr ? (
) : null;
+ const hasPrBadge = prBadgeShape?.kind === "stack" || pr !== null || currentLinkedPr !== null;
const prBadge = renderPrBadge(false);
const terminalStatusIcon = terminalStatus ? (
) : null}
+ {hasPrBadge ? (
+
+ {renderPrBadge(true, "badge")}
+
+ ) : null}
{topStatus ? (
-
+
{iconOnly ? null : isStack ? badge.layers : linkedCount !== null ? `+${linkedCount}` : number}
>
);