When using Comments, you can now add a search bar to your
application in a few lines of code. The new feature allows you to search
comments semantically, meaning that results are found based on meaning, not
exact words—for example a query for “marketing” will bring up results for “email
campaign.”
Set it up by using the new
useSearchComments
hook, passing the user’s query to query.text. The hooks returns a list of
matching comments that are inside the current room.
const{ results, error, isLoading }=useSearchComments({ query:{ text:"fruit"},}); // [{ content: "I like apples", threadId: "th_xxx", commentId: "cm_xxx" }, ...]console.log(results);
You can also use more advanced filters to narrow down results, such as
threadMetadata, hasAttachments, and more. Here’s a snippet showing a full
search component with a “Resolved threads” toggle option.
You can now customize the dropdown menu alongside comments. Add new actions,
links, or replace default items entirely. Below you can see an example of
this—the “Ask AI” and “Copy link” items have been added.
To add items, use the
commentDropdownItems
prop on Thread, or
dropdownItems on
Comment. Inserting children into the JSX places the default dropdown
components, so you can extend instead of replace them, as we are below.
Update type definitions for provider models to support GPT-5.1 variants.
Fix regression: handle rejection messages from the server again.
Updated Next.js Starter Kit to use Tiptap v3 and BlockNote 0.42.
Fix a bug where a fresh provider is required by Lexical in order to initialize
properly by always requesting a new provider in the factory function.
Tweak reconnection logic to not retry on specific 400 level error codes.
Prevents certain 400 level errors from being reported as a 403.
Fix scroll issues in some scenarios where AiChat would be rendered but
hidden.
Support for Tiptap v3 in @liveblocks/react-tiptap.
Renamed "Liveblocks notifications" to "Collaboration notifications" to better
reflect that these are notifications about collaboration activity (like
threads and mentions) that Liveblocks sends on your behalf. Notification kinds
thread and textMention are now called "Collaboration" kinds.