Summarize the 2.4 release notes in one sentence.
Opus 5.5
Version2.4addssharedworkspaces,cutssynctimeinhalfandfixestheexportbugonWindows.
1
/4How 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
| Prop | Type | Default | Description |
|---|---|---|---|
| content | string | '' | The response text content used for clipboard copying and text-to-speech reading. |
| versions | string[] | number | 1 | Total number of generated variations or array of response strings. |
| currentVersion | number | 0 | Currently selected 0-based version index in the response pagination. |
| onVersionChange | (index: number) => void | undefined | Callback fired when the user steps through response versions using the chevron arrows. |
| onRegenerate | () => void | undefined | Callback fired when clicking the regenerate prompt button. |
| isRegenerating | boolean | false | Whether a response is currently regenerating (spins the refresh icon). |
| onFeedback | (data: FeedbackData | null) => void | undefined | Callback fired when a positive or negative vote with optional reason tags and comment is submitted. |
| reasons | string[] | ['Not accurate', 'Too long', "Didn't follow instructions", 'Other'] | Custom tag options displayed in the negative feedback expansion popover. |
| showSpeak | boolean | true | Whether to show the read aloud audio speaker button with animated equalizer. |
| className | string | undefined | Optional additional Tailwind CSS class names for the outer container. |