# ai@5.0.290

Category: agent-infrastructure
Published: 2026-11-13T23:43:05Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/ai%405.0.290)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-11-17T02:17:51.229Z
Tags: vercel, ai-sdk, typescript

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

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

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

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

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