diff --git a/apps/desktop/src/app/chat/sidebar/index.tsx b/apps/desktop/src/app/chat/sidebar/index.tsx
index c8e1181a43c..d5486565b1c 100644
--- a/apps/desktop/src/app/chat/sidebar/index.tsx
+++ b/apps/desktop/src/app/chat/sidebar/index.tsx
@@ -101,6 +101,7 @@ export function ChatSidebar({
const recentSessions = sortedSessions.filter(session => !visiblePinnedIdSet.has(session.id))
const showSessionSkeletons = sessionsLoading && sortedSessions.length === 0
+ const showSessionSections = showSessionSkeletons || sortedSessions.length > 0
return (
- {sidebarOpen && (
+ {sidebarOpen && showSessionSections && (
setSidebarPinsOpen(!pinsOpen)} open={pinsOpen} />
{pinsOpen && (
@@ -180,7 +181,7 @@ export function ChatSidebar({
)}
- {sidebarOpen && (
+ {sidebarOpen && showSessionSections && (
{showSessionSkeletons && }
- {!showSessionSkeletons && sortedSessions.length === 0 && }
- {!showSessionSkeletons && sortedSessions.length > 0 && recentSessions.length === 0 && (
-
- )}
+ {!showSessionSkeletons && recentSessions.length === 0 && }
{recentSessions.map(session => (
Start a chat to build your history.
- )
-}
-
function SidebarAllPinnedState() {
return (