feat(react-headless): add Vercel AI SDK adapter - #936
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
vishxrad
marked this pull request as ready for review
August 5, 2026 13:57
abhithesys
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vercelAIAdapter()for Vercel AI SDK v6 UIMessage streams returned bytoUIMessageStreamResponse()vercelAIMessageFormatfor UIMessage request/history conversion, including tool results and multi-step ordering@openuidev/react-headless(and therefore@openuidev/react-ui)ai@^6as an optional, lazily loaded peer dependencyWhy react-headless
react-headlessalready owns the frontend stream adapters and message formats. Keeping this integration there avoids a template-local parser, whilereact-uicontinues to expose it through its existing re-export.Validation
pnpm --filter @openuidev/react-headless run test— 138 tests passedpnpm --filter @openuidev/react-headless run cipnpm --filter @openuidev/react-headless run buildpnpm --filter @openuidev/react-headless run check:publintpnpm --filter @openuidev/react-headless run check:attwpnpm --filter @openuidev/react-ui run buildpnpm --filter @openuidev/docs exec fumadocs-mdxThe package standalone
typecheckstill reports its existing missing Nodeprocesstypings in unchanged store files; the new files have no TypeScript diagnostics.Related
Supports the CLI backend-framework work in TH-2051. Once this package change is released, #785 can replace its template-local implementation with these shared exports.