diff --git a/site/src/pages/AgentsPage/AgentsSidebar.stories.tsx b/site/src/pages/AgentsPage/AgentsSidebar.stories.tsx index a2c8bb1eee..61487c2868 100644 --- a/site/src/pages/AgentsPage/AgentsSidebar.stories.tsx +++ b/site/src/pages/AgentsPage/AgentsSidebar.stories.tsx @@ -75,31 +75,6 @@ const meta: Meta = { export default meta; type Story = StoryObj; -export const SearchFiltering: Story = { - args: { - chats: [ - buildChat({ id: "parent-1", title: "Parent planner" }), - buildChat({ - id: "child-1", - title: "Child executor", - parent_chat_id: "parent-1", - root_chat_id: "parent-1", - }), - ], - }, - play: async ({ canvasElement }) => { - const canvas = within(canvasElement); - await userEvent.type( - canvas.getByPlaceholderText("Search agents..."), - "child", - ); - await waitFor(() => { - expect(canvas.getByText("Parent planner")).toBeInTheDocument(); - expect(canvas.getByText("Child executor")).toBeInTheDocument(); - }); - }, -}; - export const RunningDelegatedChat: Story = { args: { chats: [ diff --git a/site/src/pages/AgentsPage/AgentsSidebar.tsx b/site/src/pages/AgentsPage/AgentsSidebar.tsx index bae9dbbfba..7ef426fc37 100644 --- a/site/src/pages/AgentsPage/AgentsSidebar.tsx +++ b/site/src/pages/AgentsPage/AgentsSidebar.tsx @@ -20,7 +20,6 @@ import { } from "components/DropdownMenu/DropdownMenu"; import { ExternalImage } from "components/ExternalImage/ExternalImage"; import { CoderIcon } from "components/Icons/CoderIcon"; -import { Input } from "components/Input/Input"; import { ScrollArea } from "components/ScrollArea/ScrollArea"; import { Skeleton } from "components/Skeleton/Skeleton"; import { @@ -33,7 +32,7 @@ import { Loader2Icon, PanelLeftCloseIcon, PauseIcon, - SearchIcon, + SquarePenIcon, Trash2Icon, } from "lucide-react"; import { @@ -539,8 +538,7 @@ export const AgentsSidebar: FC = (props) => { chatId?: string; }>(); const activeChatId = agentId ?? chatId; - const [search, setSearch] = useState(""); - const normalizedSearch = search.trim().toLowerCase(); + const normalizedSearch = ""; const [expandedById, setExpandedById] = useState>({}); const [isArchivedExpanded, setIsArchivedExpanded] = useState(false); @@ -555,7 +553,7 @@ export const AgentsSidebar: FC = (props) => { search: normalizedSearch, tree: chatTree, }), - [chats, normalizedSearch, chatTree], + [chats, chatTree], ); const visibleRootIDs = useMemo( () => chatTree.rootIds.filter((chatID) => visibleChatIDs.has(chatID)), @@ -628,7 +626,6 @@ export const AgentsSidebar: FC = (props) => { chatTree, chatById, visibleChatIDs, - normalizedSearch, expandedById, modelOptions, modelConfigs, @@ -664,31 +661,16 @@ export const AgentsSidebar: FC = (props) => { )} -
-
- - - setSearch(event.target.value)} - className="h-9 rounded-lg border-border-default bg-surface-primary pl-8 text-[13px] shadow-none" - /> -
- -
+