From fa5b52298e90949c036925ef82aed368f41d8f6f Mon Sep 17 00:00:00 2001 From: "sp.wack" <83104063+amanape@users.noreply.github.com> Date: Fri, 23 May 2025 19:35:41 +0400 Subject: [PATCH] fix(frontend): Fix action buttons display bugs in chat interface (#8660) Co-authored-by: openhands --- .../src/components/features/chat/chat-interface.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/features/chat/chat-interface.tsx b/frontend/src/components/features/chat/chat-interface.tsx index 0854330fd7..fbcf31a400 100644 --- a/frontend/src/components/features/chat/chat-interface.tsx +++ b/frontend/src/components/features/chat/chat-interface.tsx @@ -153,11 +153,13 @@ export function ChatInterface() { /> )} - {isWaitingForUserInput && ( - handleSendMessage(value, [])} - /> - )} + {isWaitingForUserInput && + events.length > 0 && + !optimisticUserMessage && ( + handleSendMessage(value, [])} + /> + )}