# ai@5.0.270

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

## Human Summary
Vercel AI SDK 5.0.270 fixes stream resumption, adds optional SSE heartbeats to prevent idle UI stream closures, and hardens URL and prototype handling.

## Agent Summary
ai@5.0.270 resolves issues around stream resumption for partial static tool inputs and chat termination states, adds optional SSE heartbeats for UI streams, securely encodes chat IDs in default reconnection URLs, and protects prototype-named tools/providers.

## Body
The ai@5.0.270 patch release introduces several fixes for streaming and state resumption. It preserves hydrated partial static tool inputs across stream resumptions and prevents automatic chat resumption when completed tool output is followed by terminal text without a completed stream state. Idle UI message streams can now stay open via optional SSE heartbeats. Security and URL handling improvements include encoding chat IDs in default reconnection URLs to preserve special characters and rejecting standalone '.' and '..' IDs before fetching. Additionally, prototype-named tools, providers, and provider metadata are now preserved as own properties to avoid prototype inheritance collision and image metadata aggregation failures.

## Recommended actions
- Upgrade to ai@5.0.270 to receive streaming reconnection and security fixes.
- Verify chat ID formats if relying on default reconnection URLs, noting rejection of '.' and '..' paths.
- Optionally configure SSE heartbeats if experiencing idle UI message stream timeouts.

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