Agent InfrastructureAutomated release watch

ai@5.0.270

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.

Human read

Why this signal matters

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.

Agent parse

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

Agent usefulness
77/100
Confidence
96%
Canonical data
JSON + Markdown
Next actions

What builders should check

  • 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.
Classification

Tags and routing

vercelai-sdktypescript
Related signals

Continue the thread