The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed app/src/components/layout/shell/AppSidebar.test.tsx,app/src/features/conversati
Steven Enamakel3bb63169ad30
diff --git a/app/src/components/layout/shell/AppSidebar.test.tsx b/app/src/components/layout/shell/AppSidebar.test.tsxindex 653d7f17f9..04a5111871 100644--- a/app/src/components/layout/shell/AppSidebar.test.tsx+++ b/app/src/components/layout/shell/AppSidebar.test.tsx@@ -42,16 +42,16 @@ describe('nav separator visibility', () => {expect(separator).toHaveClass('my-2.5');});- it('hides it on chat, whose region opens with its own outlined button', () => {+ it('shows the standard separator on chat', () => {renderAppSidebar({ initialEntries: ['/chat'] });const separator = screen.getByTestId('sidebar-nav-separator');- expect(separator.className).toContain('opacity-0');- expect(separator).toHaveClass('my-2');+ expect(separator.className).not.toContain('opacity-0');+ expect(separator).toHaveClass('my-2.5');});- it('hides it on a chat thread route too', () => {+ it('shows it on a chat thread route too', () => {renderAppSidebar({ initialEntries: ['/chat/abc123'] });- expect(screen.getByTestId('sidebar-nav-separator').className).toContain('opacity-0');+ expect(screen.getByTestId('sidebar-nav-separator').className).not.toContain('opacity-0');});it('keeps the separator mounted when hidden', () => {diff --git a/app/src/features/conversations/aui/PinnedTodoCard.test.tsx b/app/src/features/conversations/aui/PinnedTodoCard.test.tsxindex 2ecbb78643..27dbea0e97 100644--- a/app/src/features/conversations/aui/PinnedTodoCard.test.tsx+++ b/app/src/features/conversations/aui/PinnedTodoCard.test.tsx@@ -1,8 +1,8 @@-import { act, fireEvent, render, screen, waitFor } from '@testing-library/react';+import { render, screen } from '@testing-library/react';import { beforeEach, describe, expect, it, vi } from 'vitest';import type { TodoItem } from '../../../components/assistant-ui/elements/todo-list';-import { PinnedTodoCard, TODO_CARD_OPEN_KEY } from './PinnedTodoCard';+import { PinnedTodoCard } from './PinnedTodoCard';vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (key: string) => key }) }));@@ -25,10 +25,6 @@ const idle: TodoItem[] = [{ id: '2', text: 'Step two', status: 'pending' },];-function toggle() {- return screen.getByRole('button', { name: 'conversations.runMode.plan' });-}-describe('PinnedTodoCard', () => {beforeEach(() => store.clear());@@ -49,7 +45,6 @@ describe('PinnedTodoCard', () => {]}/>);- fireEvent.click(toggle());expect(screen.getByText('Failed step — Retry needed')).toBeVisible();expect(container.querySelector('.animate-spin')).toBeNull();expect(@@ -57,32 +52,11 @@ describe('PinnedTodoCard', () => {).toEqual(['pending', 'done', 'failed']);});- it('opens while a step is active and stays collapsed otherwise', async () => {- const { rerender } = render(<PinnedTodoCard threadId="t1" items={active} />);- await waitFor(() => expect(toggle()).toHaveAttribute('aria-expanded', 'true'));- rerender(<PinnedTodoCard threadId="t1" items={idle} />);- expect(toggle()).toHaveAttribute('aria-expanded', 'false');- });-- it('remembers a manual choice per thread', async () => {- const { unmount } = render(<PinnedTodoCard threadId="t1" items={active} />);- await act(async () => {});- fireEvent.click(toggle());- expect(toggle()).toHaveAttribute('aria-expanded', 'false');- await waitFor(() =>- expect(JSON.parse(store.get(TODO_CARD_OPEN_KEY) ?? '{}')).toEqual({ t1: false })- );- unmount();-- // The remembered choice wins over the active-step default on remount.- render(<PinnedTodoCard threadId="t1" items={active} />);- await waitFor(() => expect(toggle()).toHaveAttribute('aria-expanded', 'false'));- });-- it("does not carry one thread's choice to another", async () => {- store.set(TODO_CARD_OPEN_KEY, JSON.stringify({ t1: false }));- render(<PinnedTodoCard threadId="t2" items={active} />);- await act(async () => {});- expect(toggle()).toHaveAttribute('aria-expanded', 'true');+ it('uses the upstream plan header and spacing without a custom disclosure', () => {+ const { container } = render(<PinnedTodoCard threadId="t1" items={active} />);+ expect(screen.queryByRole('button')).toBeNull();+ expect(container.querySelector('[data-slot="agent-plan"]')).toHaveClass('gap-3');+ expect(screen.getByText('Step one')).toBeVisible();+ expect(screen.getByText('Step two')).toBeVisible();});});diff --git a/app/src/features/conversations/threadList/ThreadList.test.tsx b/app/src/features/conversations/threadList/ThreadList.test.tsxindex 458921577b..09b6e36a66 100644--- a/app/src/features/conversations/threadList/ThreadList.test.tsx+++ b/app/src/features/conversations/threadList/ThreadList.test.tsx@@ -70,12 +70,9 @@ describe('ThreadList', () => {expect(within(sections[0]).getByTestId('thread-row-t3')).toBeInTheDocument();});- it('uses the assistant-ui thread-list search to filter rows', () => {+ it('has no search box in the conversation sidebar', () => {renderList();- const search = screen.getByRole('searchbox');- fireEvent.change(search, { target: { value: 'gmail' } });- expect(screen.getByTestId('thread-row-t1')).toBeInTheDocument();- expect(screen.queryByTestId('thread-row-t2')).not.toBeInTheDocument();+ expect(screen.queryByRole('searchbox')).not.toBeInTheDocument();});it('toggles a pin through the registry menu without selecting the row', async () => {