# ai@6.0.297

Category: agent-infrastructure
Published: 2026-09-30T01:19:37Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/ai%406.0.297)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-09-30T02:17:26.863Z
Tags: vercel, ai-sdk, typescript

## Human Summary
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.

## Agent 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.

## Body
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.

## Recommended actions
- 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.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.