From 41c14027e2f72335075e6045c03e2bffe396401e Mon Sep 17 00:00:00 2001 From: YfengJ <166808804+YfengJ@users.noreply.github.com> Date: Wed, 17 Jun 2026 09:05:26 +0800 Subject: [PATCH] fix: show conversations in collapsed sidebar --- .../conversation-panel/conversation-panel.tsx | 15 +++-------- .../sidebar/sidebar-conversation-list.tsx | 6 +---- .../mock-llm-conversation.spec.ts | 27 +++++++++++++++++++ 3 files changed, 31 insertions(+), 17 deletions(-) diff --git a/src/components/features/conversation-panel/conversation-panel.tsx b/src/components/features/conversation-panel/conversation-panel.tsx index 38d5c3dbd..250a31fda 100644 --- a/src/components/features/conversation-panel/conversation-panel.tsx +++ b/src/components/features/conversation-panel/conversation-panel.tsx @@ -265,16 +265,7 @@ export function ConversationPanel({ showOlderConversations, ]); - const compactVisibleConversations = React.useMemo( - () => - sortConversationsByField( - recentScoped.filter((conversation) => - isExecutionActive(conversation.execution_status), - ), - conversationSort, - ), - [conversationSort, recentScoped], - ); + const compactVisibleConversations = sortedVisibleConversations; const visibleFlatCount = sortedVisibleConversations.length; @@ -300,8 +291,8 @@ export function ConversationPanel({ // pagination, which previously caused the panel to feel like it had stray // scrollable space at the bottom. const olderHidden = olderScoped.length > 0 && !showOlderConversations; - // Compact mode also hides "Load more" — paginating into archived - // conversations contradicts the "active only" intent of the icon rail. + // Compact mode also hides "Load more" — the icon rail should stay small + // and use the same currently visible conversation set as the expanded list. // Do not show when the visible list is empty (e.g. filters hide every // loaded conversation) — that state already shows "No conversations found". const showLoadMore = diff --git a/src/components/features/sidebar/sidebar-conversation-list.tsx b/src/components/features/sidebar/sidebar-conversation-list.tsx index fffdbcf54..664e1216a 100644 --- a/src/components/features/sidebar/sidebar-conversation-list.tsx +++ b/src/components/features/sidebar/sidebar-conversation-list.tsx @@ -23,10 +23,6 @@ interface SidebarConversationListProps { export function SidebarConversationList({ collapsed, }: SidebarConversationListProps) { - if (collapsed) { - return null; - } - return (