Agent 基础设施官方发布自动监测

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.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

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 解析

可执行摘要

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 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • 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.
分类

标签与路由

vercelai-sdktypescript
相关信号

继续阅读