Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(frontend): Fix action buttons display bugs in chat interface (#8660)

sp.wackfa5b52298e90
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 && (
- <ActionSuggestions
- onSuggestionsClick={(value) => handleSendMessage(value, [])}
- />
- )}
+ {isWaitingForUserInput &&
+ events.length > 0 &&
+ !optimisticUserMessage && (
+ <ActionSuggestions
+ onSuggestionsClick={(value) => handleSendMessage(value, [])}
+ />
+ )}
</div>
<div className="flex flex-col gap-[6px] px-4 pb-4">