From 4daf8ebbdabdcdd1d95251a5c78e1f7d0ee93274 Mon Sep 17 00:00:00 2001 From: shivam <91240327+shivamhwp@users.noreply.github.com> Date: Sun, 22 Nov 2026 14:38:18 +0000 Subject: [PATCH 1/2] fix(web): a running terminal no longer adds a line to sidebar thread rows A running terminal made the sidebar row draw a second meta line, so the folder row grew from 36 to 52 px and the card row from 60 to 78 px. The terminal indicator now stays on the title line when the row has no branch, PR, issue or diff to show. Co-Authored-By: Claude Haiku 5.5 --- .../components/sidebar/SidebarThreadRow.tsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/web/src/components/sidebar/SidebarThreadRow.tsx b/apps/web/src/components/sidebar/SidebarThreadRow.tsx index 2aa9be4c244a6..39d54571ad809 100644 --- a/apps/web/src/components/sidebar/SidebarThreadRow.tsx +++ b/apps/web/src/components/sidebar/SidebarThreadRow.tsx @@ -1262,11 +1262,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP const diff = latestRunDiff(thread); // Only the trailing icons would remain, so the row moves them to the title line instead. const metaLineEmpty = - props.environmentLabel === null && - prBadge === null && - issueBadge === null && - diff === null && - runningTerminalIds.length === 0; + props.environmentLabel === null && prBadge === null && issueBadge === null && diff === null; const metaLine = metaLineEmpty ? null : (
{props.environmentLabel !== null ? ( @@ -1281,7 +1277,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP ) : ( )} - {terminalStatusIcon} {prBadge} {issueBadge} {diff ? ( @@ -1301,14 +1296,19 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
); - const titleLineIcons = metaLineEmpty ? ( - - - - ) : null; + const titleLineIcons = ( + <> + {terminalStatusIcon} + {metaLineEmpty ? ( + + + + ) : null} + + ); if (variant !== "card") { const multiline = variant === "folder-multiline"; From 14144504af03bcdd309caee094b89cccc20dd5d3 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sun, 22 Nov 2026 15:06:59 +0000 Subject: [PATCH 2/2] fix(web): keep the terminal indicator on an existing meta line The row only grew when a running terminal was the sole reason to draw the meta line. Move the indicator to the title line only in that case, and leave it where it was when the meta line is already there. Co-Authored-By: Claude Opus 5.5 --- .../components/sidebar/SidebarThreadRow.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/sidebar/SidebarThreadRow.tsx b/apps/web/src/components/sidebar/SidebarThreadRow.tsx index 39d54571ad809..d3d8c60174e0b 100644 --- a/apps/web/src/components/sidebar/SidebarThreadRow.tsx +++ b/apps/web/src/components/sidebar/SidebarThreadRow.tsx @@ -1277,6 +1277,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP ) : ( )} + {terminalStatusIcon} {prBadge} {issueBadge} {diff ? ( @@ -1296,19 +1297,17 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP ); - const titleLineIcons = ( + const titleLineIcons = metaLineEmpty ? ( <> {terminalStatusIcon} - {metaLineEmpty ? ( - - - - ) : null} + + + - ); + ) : null; if (variant !== "card") { const multiline = variant === "folder-multiline";