Agent InfrastructureAutomated release watch

ai@5.0.290

Vercel AI SDK 5.0.290 fixes a memory/CPU exhaustion vector during UI message validation and aligns tool call error text with message history.

Human read

Why this signal matters

Version 5.0.290 of the Vercel AI SDK addresses two key issues. First, it resolves excessive CPU and memory consumption during UI message validation (validateUIMessages and safeValidateUIMessages) caused by testing every part schema against every invalid part; validation now validates against type-specific schemas only, halts on the first invalid entry, and consolidates invalid JSON in provider metadata into a single issue. Second, failed tool call error text is kept consistent with model message history by default, adding the redactToolErrors: true option to mask it using onError.

Agent parse

Actionable summary

ai@5.0.290 introduces performance and behavior fixes: prevents resource exhaustion in validateUIMessages by failing fast on invalid parts and checking only type-specific schemas, and maintains tool call error text consistency with an opt-in redactToolErrors flag.

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

What builders should check

  • Upgrade to ai@5.0.290 to prevent potential memory/CPU exhaustion from malformed UI messages.
  • Evaluate if redactToolErrors: true is required if sensitive tool call error information should be hidden from message history.
Classification

Tags and routing

vercelai-sdktypescript
Related signals

Continue the thread