Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(conversations): drop unused search and storage mocks

Steven Enamakel62be54ed8df8
diff --git a/app/src/features/conversations/aui/PinnedTodoCard.test.tsx b/app/src/features/conversations/aui/PinnedTodoCard.test.tsx
index 27dbea0e97..c9a9295461 100644
--- a/app/src/features/conversations/aui/PinnedTodoCard.test.tsx
+++ b/app/src/features/conversations/aui/PinnedTodoCard.test.tsx
@@ -1,32 +1,16 @@
import { render, screen } from '@testing-library/react';
-import { beforeEach, describe, expect, it, vi } from 'vitest';
+import { describe, expect, it, vi } from 'vitest';
import type { TodoItem } from '../../../components/assistant-ui/elements/todo-list';
import { PinnedTodoCard } from './PinnedTodoCard';
vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (key: string) => key }) }));
-const store = vi.hoisted(() => new Map<string, string>());
-vi.mock('../../../store/userScopedStorage', () => ({
- userScopedStorage: {
- getItem: async (key: string) => store.get(key) ?? null,
- setItem: async (key: string, value: string) => {
- store.set(key, value);
- },
- },
-}));
-
const active: TodoItem[] = [
{ id: '1', text: 'Step one', status: 'done' },
{ id: '2', text: 'Step two', status: 'active' },
];
-const idle: TodoItem[] = [
- { id: '1', text: 'Step one', status: 'done' },
- { id: '2', text: 'Step two', status: 'pending' },
-];
-
describe('PinnedTodoCard', () => {
- beforeEach(() => store.clear());
it('renders the live progress using the assistant-ui agent plan', () => {
const { container } = render(<PinnedTodoCard threadId="t1" items={active} />);
diff --git a/app/src/features/conversations/threadList/ThreadList.tsx b/app/src/features/conversations/threadList/ThreadList.tsx
index 159d47ff23..81d9e483d7 100644
--- a/app/src/features/conversations/threadList/ThreadList.tsx
+++ b/app/src/features/conversations/threadList/ThreadList.tsx
@@ -12,7 +12,7 @@ import {
useExternalStoreRuntime,
} from '@assistant-ui/react';
import { PinIcon } from 'lucide-react';
-import { createContext, useContext, useMemo, useState } from 'react';
+import { createContext, useContext, useMemo } from 'react';
import { useT } from '../../../lib/i18n/I18nContext';
import type { Thread } from '../../../types/thread';
@@ -96,7 +96,7 @@ function ThreadRow() {
);
}
-/** The core owns threads; assistant-ui owns selection, search controls and row actions. */
+/** The core owns threads; assistant-ui owns selection and row actions. */
export function ThreadList(props: ThreadListProps) {
const { threads, resolveTitle } = props;
const adapterThreads = useMemo(
@@ -157,7 +157,6 @@ function ThreadListView() {
title={t('chat.newThreadShortcut')}
label={t('chat.newConversation')}
/>
- {props.threads.length > 0 && <ThreadListSearch value={search} onValueChange={setSearch} />}
</div>
<div
data-slot="aui_thread-list-items"