Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/components/src/components/session-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ import {
SessionPrIcon,
SessionRowAuthorAvatar,
SessionRowLeadingSlot,
SessionRowWorktreeIndicator,
SidebarRowArchiveButton,
SidebarRowEndSlot,
SessionMergeablePill,
Expand Down Expand Up @@ -811,6 +812,7 @@ const SessionGroupSection = memo(function SessionGroupSection({
prStatus !== 'merged' &&
prStatus !== 'closed';
const showMergeablePill = isMergeable && !isSelected;
const showWorktreeIcon = session.isWorktree === true;
const canArchive = typeof onArchiveSession === 'function';
const showInlineArchive = canArchive && !isMobile;
const isChatSession = group.kind === 'chat';
Expand Down Expand Up @@ -1001,7 +1003,7 @@ const SessionGroupSection = memo(function SessionGroupSection({
className="text-xs text-muted-foreground"
/>
</span>
) : hasPr || hasChanges || showMergeablePill || isMobile ? (
) : hasPr || hasChanges || showMergeablePill || showWorktreeIcon || isMobile ? (
<span
className={cn(
'flex select-none items-center gap-1.5 text-[11px] tabular-nums text-sidebar-foreground-muted/80',
Expand All @@ -1022,6 +1024,7 @@ const SessionGroupSection = memo(function SessionGroupSection({
<span className="text-code-removed">-{session.deletedLines}</span>
</span>
) : null}
<SessionRowWorktreeIndicator isWorktree={showWorktreeIcon} />
{hasPr ? (
<SessionPrIcon prStatus={prStatus} prCiState={session.prCiState} />
) : null}
Expand Down