diff --git a/packages/app/src/components/sliding-sidebar.tsx b/packages/app/src/components/sliding-sidebar.tsx index e4a641d84..b672c95ba 100644 --- a/packages/app/src/components/sliding-sidebar.tsx +++ b/packages/app/src/components/sliding-sidebar.tsx @@ -26,7 +26,7 @@ import { deriveSidebarShortcutAgentKeys } from "@/utils/sidebar-shortcuts"; import { AdaptiveModalSheet } from "@/components/adaptive-modal-sheet"; const DESKTOP_SIDEBAR_WIDTH = 320; -const SIDEBAR_AGENT_LIMIT = 15; +const SIDEBAR_AGENT_LIMIT = 50; // temporary for screenshots interface SlidingSidebarProps { selectedAgentId?: string; @@ -83,12 +83,8 @@ export function SlidingSidebar({ selectedAgentId }: SlidingSidebarProps) { }); }, [agents]); - const limitedAgents = useMemo( - () => sortedAgents.slice(0, SIDEBAR_AGENT_LIMIT), - [sortedAgents] - ); - - const sidebarSections = useSidebarAgentSections(limitedAgents); + // Pass all agents to grouping, limit is applied inside groupAgents per-project + const sidebarSections = useSidebarAgentSections(sortedAgents); const collapsedProjectKeys = useSidebarCollapsedSectionsStore((s) => s.collapsedProjectKeys); const setSidebarShortcutAgentKeys = useKeyboardNavStore((s) => s.setSidebarShortcutAgentKeys); const sidebarShortcutAgentKeys = useMemo(() => { @@ -294,7 +290,7 @@ export function SlidingSidebar({ selectedAgentId }: SlidingSidebarProps) { {/* Middle: scrollable agent list */}