# ai@5.0.274

Category: agent-infrastructure
Published: 2026-10-12T17:45:57Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/ai%405.0.274)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-13T10:17:32.766Z
Tags: vercel, ai-sdk, typescript

## Human Summary
Vercel AI SDK 5.0.274 fixes several chat stream issues, including stream resumption on page visibility, cleanup on stop, stable ID message tracking, and tool output matching.

## Agent Summary
ai@5.0.274 patch release: fixes useChat stream resumption logic on page visibility and component remounts, ensures proper cleanup on stream stop, updates tool outputs in messages with matching tool calls, updates streaming messages via stable IDs, discards unrelated message state on resume, and resolves global type conflicts.

## Body
The ai@5.0.274 patch release introduces multiple bug fixes for chat streaming and message handling: - Stream Resumption: Fixes resuming interrupted chat streams upon page visibility. useChat with resume: true avoids triggering duplicate resume requests on mount if the chat is actively submitted or streaming (such as remounting with a shared Chat instance). - Stream State Management: Chat messages during streaming are now updated by stable ID. Unrelated message state is discarded when reading resumed streams, and the system now waits for chat stream cleanup when stopping. - Tool Handling: Tool outputs are properly updated within the specific message containing the matching tool call. - Types and Dependencies: Resolves global type conflicts across SDK versions and bumps @ai-sdk/gateway to 2.0.165.

## Recommended actions
- Upgrade the ai package to version 5.0.274 if experiencing issues with chat stream resumption, message ID updates, or tool call outputs.

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