diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx
index 2d974be3ee..299948c862 100644
--- a/apps/web/src/components/Sidebar.tsx
+++ b/apps/web/src/components/Sidebar.tsx
@@ -72,7 +72,6 @@ import {
} from "./desktopUpdate.logic";
import { Alert, AlertAction, AlertDescription, AlertTitle } from "./ui/alert";
import { Button } from "./ui/button";
-import { Collapsible, CollapsibleContent } from "./ui/collapsible";
import { Menu, MenuGroup, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuTrigger } from "./ui/menu";
import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip";
import {
@@ -1228,7 +1227,7 @@ export default function Sidebar() {
};
return (
-
+ <>
-
-
- {renderedThreads.map((thread) => renderThreadRow(thread))}
-
- {project.expanded && hasHiddenThreads && !isThreadListExpanded && (
-
- }
- data-thread-selection-safe
- size="sm"
- className="h-6 w-full translate-x-0 justify-start px-2 text-left text-[10px] text-muted-foreground/60 hover:bg-accent hover:text-muted-foreground/80"
- onClick={() => {
- expandThreadListForProject(project.id);
- }}
- >
- Show more
-
-
- )}
- {project.expanded && hasHiddenThreads && isThreadListExpanded && (
-
- }
- data-thread-selection-safe
- size="sm"
- className="h-6 w-full translate-x-0 justify-start px-2 text-left text-[10px] text-muted-foreground/60 hover:bg-accent hover:text-muted-foreground/80"
- onClick={() => {
- collapseThreadListForProject(project.id);
- }}
- >
- Show less
-
-
- )}
-
-
-
+
+ {shouldShowThreadPanel && renderedThreads.map((thread) => renderThreadRow(thread))}
+
+ {project.expanded && hasHiddenThreads && !isThreadListExpanded && (
+
+ }
+ data-thread-selection-safe
+ size="sm"
+ className="h-6 w-full translate-x-0 justify-start px-2 text-left text-[10px] text-muted-foreground/60 hover:bg-accent hover:text-muted-foreground/80"
+ onClick={() => {
+ expandThreadListForProject(project.id);
+ }}
+ >
+ Show more
+
+
+ )}
+ {project.expanded && hasHiddenThreads && isThreadListExpanded && (
+
+ }
+ data-thread-selection-safe
+ size="sm"
+ className="h-6 w-full translate-x-0 justify-start px-2 text-left text-[10px] text-muted-foreground/60 hover:bg-accent hover:text-muted-foreground/80"
+ onClick={() => {
+ collapseThreadListForProject(project.id);
+ }}
+ >
+ Show less
+
+
+ )}
+
+ >
);
}