ai@6.0.297
Vercel AI SDK 6.0.297 introduces fixes for streaming reliability, including SSE heartbeats for idle UI streams, proper encoding and validation of chat reconnection IDs, and preserved tool input across resumptions.
Why this signal matters
Vercel AI SDK patch release ai@6.0.297 addresses several stream resumption, tool execution, and connection issues. Key updates include: preserving hydrated partial static tool inputs across stream resumptions; optional SSE heartbeats to keep idle UI message streams open; URL encoding chat IDs and rejecting '.' and '..' in default stream reconnection paths; protecting prototype-named tools and providers from prototype-pollution/lookup issues; refining automatic chat resumption logic when completed tool outputs are followed by terminal text without completed stream state; and clarifying that provider-executed tool execution errors bypass UI stream onError callbacks to maintain error data.
Actionable summary
ai@6.0.297 patches stream management and tool handling: preserves hydrated partial static tool inputs during resumption, adds optional SSE heartbeats to prevent idle UI stream dropouts, sanitizes/encodes default stream reconnection chat IDs, guards against prototype-named tools/providers collisions, and adjusts automatic chat resumption triggers.
- Agent usefulness
- 77/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Upgrade ai to version 6.0.297 (and @ai-sdk/gateway to 3.0.206).
- Review stream reconnection setups if utilizing chat IDs with special characters or dot paths.
- Verify error handling for provider-executed tools, noting that their errors bypass UI stream onError to retain provider data.