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
test(conversations): cover plan cards rendering in composer overlay
Steven Enamakelcdaddc0dde31
diff --git a/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx b/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsxindex 05cf2f3cb4..801e5a1e5b 100644--- a/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx+++ b/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx@@ -39,7 +39,7 @@ import socketReducer from '../../store/socketSlice';import themeReducer from '../../store/themeSlice';import threadGoalReducer from '../../store/threadGoalSlice';import threadReducer from '../../store/threadSlice';-import threadTodosReducer from '../../store/threadTodosSlice';+import threadTodosReducer, { setThreadTodos } from '../../store/threadTodosSlice';import type { Thread, ThreadMessage } from '../../types/thread';// ── Hoisted mock state ─────────────────────────────────────────────────────@@ -293,6 +293,18 @@ describe('assistant-ui chat surface — composer-adjacent cards', () => {vi.mocked(chatSend).mockResolvedValue(undefined);});+ it('places live plan cards in an overlay above the composer rather than normal chat flow', async () => {+ const store = await renderChat();+ await act(async () => store.dispatch(setThreadTodos({ threadId: THREAD_ID, todos: [+ { content: 'Inspect the current UI', status: 'completed' },+ { content: 'Verify overlay geometry', status: 'in_progress' },+ ] })));+ const plan = await screen.findByTestId('todo-checklist');+ const overlay = plan.closest('[data-slot="composer-overlays"]');+ expect(overlay).toHaveClass('absolute', 'bottom-full');+ expect(overlay?.closest('form')).toHaveClass('relative');+ });+it('shows the send error when a send is rejected', async () => {// A rejected send writes nothing to the transcript, so this banner is the// ONLY feedback the user gets. Without it the message just disappears.