From 476fdd604037f2e3fd207d75c16722f0496a2d51 Mon Sep 17 00:00:00 2001 From: Trang Le Date: Tue, 14 Oct 2025 14:04:52 +0700 Subject: [PATCH] feat: Enable new prompt input while waiting for an answer (#6676) * enable new prompt input while waiting for an answer * correct spelling of handleSendMessage function * remove test for disabling input while streaming content --- web-app/src/containers/ChatInput.tsx | 17 ++++++++--------- .../src/containers/__tests__/ChatInput.test.tsx | 12 ------------ 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx index 1cf20fdd2..2ba52c2e9 100644 --- a/web-app/src/containers/ChatInput.tsx +++ b/web-app/src/containers/ChatInput.tsx @@ -594,7 +594,6 @@ const ChatInput = ({ )} { }) }) - it('disables input when streaming', async () => { - // Mock streaming state - mockAppState.streamingContent = { thread_id: 'test-thread' } - - await act(async () => { - renderWithRouter() - }) - - const textarea = screen.getByTestId('chat-input') - expect(textarea).toBeDisabled() - }) - it('shows tools dropdown when model supports tools and MCP servers are connected', async () => { // Mock connected servers mockGetConnectedServers.mockResolvedValue(['server1'])