feat(chat): show revert button on all user messages

Remove restriction preventing revert on first user message
Simplify message props by removing isFirstMessage flag
This commit is contained in:
Bohdan Triapitsyn
2026-01-02 19:54:16 +02:00
parent ad0439da39
commit dca8be01ca
3 changed files with 16 additions and 29 deletions
@@ -66,7 +66,6 @@ interface ChatMessageProps {
scrollToBottom?: (options?: { instant?: boolean; force?: boolean }) => void;
isPendingAnchor?: boolean;
turnGroupingContext?: TurnGroupingContext;
isFirstMessage?: boolean;
}
const ChatMessage: React.FC<ChatMessageProps> = ({
@@ -77,7 +76,6 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
animationHandlers,
isPendingAnchor = false,
turnGroupingContext,
isFirstMessage = false,
}) => {
const { isMobile, hasTouchInput } = useDeviceInfo();
const { currentTheme } = useThemeSystem();
@@ -790,7 +788,6 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
onAuxiliaryContentComplete={handleAuxiliaryContentComplete}
agentMention={agentMention}
onRevert={handleRevert}
isFirstMessage={isFirstMessage}
errorMessage={assistantErrorText}
/>
</div>