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
fix(chat): prevent composer from rendering in new window hero test
Steven Enamakelc7b4a42e576a
diff --git a/app/src/components/chat/ChatComposer.tsx b/app/src/components/chat/ChatComposer.tsxindex fa7e568096..b08aa19ece 100644--- a/app/src/components/chat/ChatComposer.tsx+++ b/app/src/components/chat/ChatComposer.tsx@@ -7,7 +7,6 @@ import type { Attachment } from '../../lib/attachments';import { useT } from '../../lib/i18n/I18nContext';import { Button } from '../ui';import AttachmentPreview from './AttachmentPreview';-import ModelQualityPill from './ModelQualityPill';import {AddAttachmentIcon,MicIcon,@@ -29,6 +28,7 @@ import {COMPOSER_SEND,} from './composer/composerStyles';import { useComposerTextBridge } from './composer/useComposerTextBridge';+import ModelQualityPill from './ModelQualityPill';const debug = debugFactory('openhuman:chat-composer');diff --git a/app/src/components/chat/ChatNewWindowHero.test.tsx b/app/src/components/chat/ChatNewWindowHero.test.tsxindex 27ff4e6d16..4b7139a21d 100644--- a/app/src/components/chat/ChatNewWindowHero.test.tsx+++ b/app/src/components/chat/ChatNewWindowHero.test.tsx@@ -10,9 +10,7 @@ const mockUseUsageState = vi.hoisted(() =>);vi.mock('../../hooks/useUsageState', () => ({ useUsageState: mockUseUsageState }));-vi.mock('../../services/api/openrouterFreeModels', () => ({- applyOpenRouterFreeModels: vi.fn(),-}));+vi.mock('../../services/api/openrouterFreeModels', () => ({ applyOpenRouterFreeModels: vi.fn() }));const blockingStateMock = vi.hoisted(() => ({ current: 'ok' as string }));vi.mock('../../store/connectivitySelectors', () => ({@@ -42,14 +40,13 @@ describe('ChatNewWindowHero', () => {fireEvent.click(restart);await waitFor(() => expect(restartCoreProcessMock).toHaveBeenCalled());});+it('renders the prompt heading that used to live in the composer placeholder', () => {blockingStateMock.current = 'ok';render(<ChatNewWindowHero />);// Real heading now, not hint text inside the textarea. The e2e// `textExists('How can I help you today?')` check in// conversations-web-channel-flow depends on it being on-screen text.- expect(- screen.getByRole('heading', { name: 'How can I help you today?' })- ).toBeInTheDocument();+ expect(screen.getByRole('heading', { name: 'How can I help you today?' })).toBeInTheDocument();});});