feat: add retry/resend button on user messages
Hover over any user message to reveal a retry button (↻) that resends the message text. Disabled while a response is generating. Includes EN/FR i18n strings.
This commit is contained in:
@@ -112,7 +112,7 @@ export function Chat({ messages, isGenerating, status, onSend, onAbort }: Props)
|
||||
</div>
|
||||
)}
|
||||
{messages.filter(hasVisibleContent).map(msg => (
|
||||
<ChatMessageComponent key={msg.id} message={msg} />
|
||||
<ChatMessageComponent key={msg.id} message={msg} onRetry={!isGenerating ? handleSend : undefined} />
|
||||
))}
|
||||
{showTyping && <TypingIndicator />}
|
||||
<div ref={bottomRef} />
|
||||
|
||||
Reference in New Issue
Block a user