@tanstack/ai-react breaking changes
Updated December 4, 2026
On this page
Latest version 1.3.0, released November 30, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 0.31.0 to 1.1.1: 48 breaking changes in 2 versions.
- From 0.9.0 to 1.1.1: 150 breaking changes in 17 versions.
@tanstack/ai-react 1.1.1 breaking changes
- Configuration changed
fromChatTransport
The connection now reads threadId, tools and outputSchema from useChat. Code that passes them to fromChatTransport should remove them and set them on useChat instead. github.com - Signature changed
UseChatOptions
Was type UseChatOptions<TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined, TContext = InferredClientContext<TTools>, TInterrupts extends ReadonlyArray<InterruptDefinition<any, any, any... npmjs.com
@tanstack/ai-react 1.0.0 breaking changes
- Removed
Every @deprecated export, option, field and type alias is removed; each had a replacement shipped in 0.x. github.com - Removed
Old wire formats and readers for 0.x saved data are gone; use a 1.0 client with a 1.0 server. github.com - Removed
Provider models that are shut down are removed in 1.0. github.com - Removed
@tanstack.ai-react-ui
The @tanstack/ai-react-ui package has no 1.0 release. Remove it and use the /ui subpath of @tanstack/ai-react instead. tanstack.com - Removed
Chat
Build the chat UI with createChatHook and supply your own components instead of Chat, ChatMessages, ChatMessage, and ChatInput. tanstack.com - Removed
interrupt.error
Read the first entry of interrupt.errors instead of interrupt.error. tanstack.com - Removed
TOOL_CALL_START.toolName
Read the tool name from toolCallName instead of toolName. github.com - Removed
ui:Chat
Use createChatHook instead. npmjs.com - Removed
ui:ChatInput
Use createChatUI instead. npmjs.com - Removed
ui:ChatInputProps
ChatInputProps was removed in @tanstack/ai-react 1.0.0 npmjs.com
And 36 more in this version. Sign up to see every change
@tanstack/ai-react 0.31.0 breaking changes
- Behavior changed
RealtimeClient.connect
Connecting clears messages and pending user and assistant transcripts from the previous session. github.com - Behavior changed
RealtimeClient.interrupt
Calling interrupt() also clears pendingAssistantTranscript. github.com - Behavior changed
useChat
Changing messages or queue in place throws a TypeError. Use setMessages to change messages. github.com - Signature changed
ui:ChatUIHost.messages
Was messages: Array<UIMessage<TTools, TData, TSubagents>>; now messages: ReadonlyArray<UIMessage<TTools, TData, TSubagents>>. npmjs.com - Signature changed
ui:ChatUIHost.queue
Was queue: Array<QueuedMessage>; now queue: ReadonlyArray<QueuedMessage>. npmjs.com - Signature changed
ui:ChatUIHost.setMessages
Was setMessages: (messages: Array<UIMessage<TTools, TData>>) => void; now setMessages: (messages: ReadonlyArray<UIMessage<TTools, TData>>) => void. npmjs.com - Signature changed
useChat
Code that passes messages to its own functions should type that parameter as ReadonlyArray<UIMessage>. github.com - Signature changed
UseRealtimeChatReturn.messages
Was messages: Array<RealtimeMessage>; now messages: ReadonlyArray<RealtimeMessage>. npmjs.com
@tanstack/ai-react 0.30.1 breaking changes
- Behavior changed
chat
chat({ stream: false }) and streamToText() now return a ChatResult with text and chunks, not a string. Destructure text from the result to migrate. github.com - Behavior changed
streamToText
streamToText() now returns a ChatResult with text and chunks, not a string. Destructure text from the result to migrate. github.com
@tanstack/ai-react 0.30.0 breaking changes
- Signature changed
StructuredOutputPart.data
The data field of StructuredOutputPart is no longer optional when status is 'complete'. Code that validates messages with a schema typed as UIMessage must split the structured-output part by status and make data required for 'complete'. github.com - Signature changed
UseChatOptions
Was type UseChatOptions<TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined, TContext = InferredClientContext<TTools>, TInterrupts extends ReadonlyArray<InterruptDefinition<any, any, any... npmjs.com
@tanstack/ai-react 0.29.1 breaking changes
- Signature changed
useWebMCPTools
Was function useWebMCPTools<const TTools extends ReadonlyArray<AnyClientTool>, TContext = InferredClientContext<TTools>>(tools: TTools, ...[options]: UseWebMCPToolsArguments<TTools, TContext>): void; now const useWebMCPTools: typeof... npmjs.com - Signature changed
UseWebMCPToolsOptions
Was type UseWebMCPToolsOptions<TTools extends ReadonlyArray<AnyClientTool>, TContext = InferredClientContext<TTools>> = Omit<RegisterWebMCPToolsOptions<TTools, TContext>, 'signal'> & {onError?: (error: unknown) => void;}; now type... npmjs.com
Older versions
12 older versions, each with its first changes. Sign up to see every change
Show 12 older versions
@tanstack/ai-react 0.28.0 breaking changes
- Behavior changed
fromSpecTokenUsage
It now adds every entry of RUN_FINISHED.usage[] instead of reading only the first, so reported totals are higher for runs with more than one usage entry. github.com - Signature changed
createChatHook
Was function createChatHook<const TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined, TContext = InferredClientContext<TTools>, const TInterrupts extends... npmjs.com
And 7 more in this version.
@tanstack/ai-react 0.26.0 breaking changes
- Removed
ui:TextPartProps.disableDefaultPlugins
TextPartProps.disableDefaultPlugins was removed in @tanstack/ai-react 0.26.0 npmjs.com - Removed
ui:TextPartProps.rehypePlugins
TextPartProps.rehypePlugins was removed in @tanstack/ai-react 0.26.0 npmjs.com
And 5 more in this version.
@tanstack/ai-react 0.21.1 breaking changes
- Signature changed
useChat
Was function useChat<const TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined, TContext = InferredClientContext<TTools>>(options: UseChatOptions<TTools, TSchema, TContext>)... npmjs.com - Signature changed
UseChatOptions
Was type UseChatOptions<TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined, TContext = InferredClientContext<TTools>> = DistributedOmit<ChatClientOptions<TTools, TContext>... npmjs.com
And 1 more in this version.
@tanstack/ai-react 0.20.0 breaking changes
- Removed
id
Chat and generation clients no longer take a separate id option. Pass threadId instead. github.com - Removed
UseGenerateAudioOptions.id
Use threadId instead. npmjs.com
And 15 more in this version.
@tanstack/ai-react 0.19.0 breaking changes
- Removed
Apps that relied on zod arriving through @tanstack/ai must now declare zod themselves with npm install zod. github.com - Removed
artifactBlobKey
artifactBlobKey is no longer exported. Use resolveArtifactBlobKey for reads. github.com
And 30 more in this version.
@tanstack/ai-react 0.18.0 breaking changes
- Behavior changed
sendMessage
Messages sent while a stream is in flight are now queued by default and sent once the stream settles. To restore the previous drop-while-busy behavior, pass queue: 'drop'. github.com - Signature changed
UseChatOptions
Was type UseChatOptions<TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined, TContext = InferredClientContext<TTools>> = DistributedOmit<ChatClientOptions<TTools, TContext>... npmjs.com
@tanstack/ai-react 0.17.0 breaking changes
- Removed
UseRealtimeChatReturn.setVADMode
UseRealtimeChatReturn.setVADMode was removed in @tanstack/ai-react 0.17.0 npmjs.com - Removed
UseRealtimeChatReturn.vadMode
UseRealtimeChatReturn.vadMode was removed in @tanstack/ai-react 0.17.0 npmjs.com
And 1 more in this version.
@tanstack/ai-react 0.16.0 breaking changes
- Signature changed
useGenerateAudio
Was function useGenerateAudio<TOnResult extends ((result: AudioGenerationResult) => any) | undefined = undefined>(options: Omit<UseGenerateAudioOptions, 'onResult'> & {onResult?: TOnResult;})... npmjs.com - Signature changed
useGenerateImage
Was function useGenerateImage<TOnResult extends ((result: ImageGenerationResult) => any) | undefined = undefined>(options: Omit<UseGenerateImageOptions, 'onResult'> & {onResult?: TOnResult;})... npmjs.com
And 5 more in this version.
@tanstack/ai-react 0.14.0 breaking changes
- Behavior changed
Tools that return undefined or null are now checked against outputSchema, so a schema that forbids those values now yields an output-error. Make the schema allow null or undefined where those returns are intended. github.com - Signature changed
useChat
Was function useChat<TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined>(options: UseChatOptions<TTools, TSchema>): UseChatReturn<TTools, TSchema>; now function useChat<TTools extends... npmjs.com
And 1 more in this version.
@tanstack/ai-react 0.12.0 breaking changes
- Removed
UseChatOptions.live
UseChatOptions.live was removed in @tanstack/ai-react 0.12.0 npmjs.com - Removed
UseChatOptions.outputSchema
UseChatOptions.outputSchema was removed in @tanstack/ai-react 0.12.0 npmjs.com
And 1 more in this version.
@tanstack/ai-react 0.11.0 breaking changes
- Behavior changed
useChat
When outputSchema is set, streamed JSON no longer appears as a TextPart on assistant messages; it accumulates in a structured-output part instead. Code that filtered out TextParts can stay as is or drop the filter. github.com - Signature changed
UseChatReturn
Was type UseChatReturn<TTools extends ReadonlyArray<AnyClientTool> = any, TSchema extends SchemaInput | undefined = undefined> = BaseUseChatReturn<TTools> & (TSchema extends SchemaInput ? {partial: DeepPartial<InferSchemaType<TSchema>>... npmjs.com
@tanstack/ai-react 0.9.0 breaking changes
- Removed
OpenAISummarizeProviderOptions
Infer the type from the adapter with InferTextProviderOptions or drop the explicit annotation instead. github.com - Removed
UseChatReturn.addToolApprovalResponse
UseChatReturn.addToolApprovalResponse was removed in @tanstack/ai-react 0.9.0 npmjs.com
And 17 more in this version.
Related packages
- @tanstack/ai
- @tanstack/ai-client
- @tanstack/ai-gemini
- @tanstack/ai-anthropic
- @tanstack/ai-ollama
- @tanstack/ai-openai
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.