Skip to content

Backport: Serialize undefined tool output to null in UI message chunks - #16240

Merged
gr2m merged 2 commits into
release-v6.0from
backport-pr-15855-to-release-v6.0
Jun 17, 2026
Merged

Backport: Serialize undefined tool output to null in UI message chunks#16240
gr2m merged 2 commits into
release-v6.0from
backport-pr-15855-to-release-v6.0

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This is an automated backport of #15855 to the release-v6.0 branch. FYI @nwalters512

On v6.0 the tool-output-available chunk is produced in stream-text.ts
(to-ui-message-chunk.ts does not exist here). Apply the undefined->null
coercion there and drop the cherry-picked v7-only files.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gr2m
gr2m marked this pull request as ready for review June 17, 2026 23:04
@gr2m
gr2m merged commit f994df3 into release-v6.0 Jun 17, 2026
48 checks passed
@gr2m
gr2m deleted the backport-pr-15855-to-release-v6.0 branch June 17, 2026 23:14
@github-actions

Copy link
Copy Markdown
Contributor Author

🚀 Published in:

Package Version
ai 6.0.208 github npm
@ai-sdk/angular 2.0.209 github npm
@ai-sdk/langchain 2.0.216 github npm
@ai-sdk/llamaindex 2.0.208 github npm
@ai-sdk/react 3.0.210 github npm
@ai-sdk/rsc 2.0.208 github npm
@ai-sdk/svelte 4.0.208 github npm
@ai-sdk/vue 3.0.208 github npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants