ai@5.0.274
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.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
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.
可执行摘要
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.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade the ai package to version 5.0.274 if experiencing issues with chat stream resumption, message ID updates, or tool call outputs.