Fix bottom border rendering for search and add a regression test. (#20517)

This commit is contained in:
Jacob Richman
2026-02-26 20:55:21 -08:00
committed by GitHub
parent 83a3851dfd
commit 82336de7a4
9 changed files with 597 additions and 53 deletions

View File

@@ -47,7 +47,10 @@ export function getToolGroupBorderAppearance(
: allPendingItems
.filter(
(i): i is HistoryItemToolGroup =>
i !== null && i !== undefined && i.type === 'tool_group',
i !== null &&
i !== undefined &&
i.type === 'tool_group' &&
i.tools.length > 0,
)
.slice(-1)
.flatMap((i) => i.tools);