Summarize the 2.4 release notes in one sentence.
Opus 5.5
Version2.4addssharedworkspaces,cutssynctimeinhalfandfixestheexportbugonWindows.
1
/4

How to use

01Import the component
import { AIMessageFeedback } from '@/components/shitui/AiMessageFeedback';
02Quick Start

Render the action bar below your AI message response.

export default function AssistantMessage({ message, onRegenerate }) {
return (
  <div className="flex flex-col gap-2">
    <p className="text-sm leading-relaxed">{message.text}</p>
    
    <AIMessageFeedback
      content={message.text}
      versions={message.versions?.length || 1}
      currentVersion={0}
      onRegenerate={onRegenerate}
      onFeedback={(feedback) => {
        // Captures user reaction: { type: 'up' } or { type: 'down', reasons: [...], comment: '...' }
        console.log('User feedback:', feedback);
      }}
    />
  </div>
);
}
03Custom Feedback Reasons

Customize the chips shown when thumbs down is selected.

const customReasons = [
'Factually incorrect',
'Code does not compile',
'Repetitive answer',
'Off-topic',
'Other',
];

<AIMessageFeedback
content="Hello world response"
reasons={customReasons}
onFeedback={(data) => sendTelemetry(data)}
/>

Features

Playful floating heart particle burst with physics sway and opacity fades on thumbs up.

Props

PropTypeDefaultDescription
contentstring''The response text content used for clipboard copying and text-to-speech reading.
versionsstring[] | number1Total number of generated variations or array of response strings.
currentVersionnumber0Currently selected 0-based version index in the response pagination.
onVersionChange(index: number) => voidundefinedCallback fired when the user steps through response versions using the chevron arrows.
onRegenerate() => voidundefinedCallback fired when clicking the regenerate prompt button.
isRegeneratingbooleanfalseWhether a response is currently regenerating (spins the refresh icon).
onFeedback(data: FeedbackData | null) => voidundefinedCallback fired when a positive or negative vote with optional reason tags and comment is submitted.
reasonsstring[]['Not accurate', 'Too long', "Didn't follow instructions", 'Other']Custom tag options displayed in the negative feedback expansion popover.
showSpeakbooleantrueWhether to show the read aloud audio speaker button with animated equalizer.
classNamestringundefinedOptional additional Tailwind CSS class names for the outer container.