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:
Nicolas Varrot
2026-02-11 21:56:48 +00:00
parent 473d23c140
commit 5b2f3a340d
3 changed files with 16 additions and 3 deletions

View File

@@ -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} />