removed redundant new chat

This commit is contained in:
Arjun 2026-02-17 23:29:45 +05:30
parent 5f56a842e2
commit 5ae1fd31ff

View file

@ -1089,17 +1089,6 @@ function TasksSection({
}) {
return (
<SidebarGroup className="flex-1 flex flex-col overflow-hidden">
{/* Sticky New Chat button - matches Knowledge section height */}
<div className="sticky top-0 z-10 bg-sidebar border-b border-sidebar-border py-0.5">
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton onClick={actions?.onNewChat} className="gap-2">
<SquarePen className="size-4 shrink-0" />
<span className="text-sm">New chat</span>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</div>
<SidebarGroupContent className="flex-1 overflow-y-auto">
{/* Background Tasks Section */}
{backgroundTasks.length > 0 && (