FrameworksOfficial

AI SDK 7.0.158 fixes partial JSON beginning with a negative number and expands experimental sandbox files

Released October 30, AI SDK 7.0.158 fixes streamed objects being reset to undefined when the first number in an array has only reached the valid prefix `[-`. Experimental `SandboxSession` also gains file status, directory listing and deletion APIs.

Why it matters

Generative interfaces often paint from partial JSON. Treating a valid negative-number prefix as invalid can make a rendered surface disappear or lose state. The sandbox additions bring file generation, inspection and cleanup into one runtime boundary.

A closer look

The regression fix covers `processUIMessageStream` input and UI-framework `useObject` paths with new tests. Experimental sandboxes add `stat`, `listDirectory` and `deleteFile`, specify relative-path, symlink and recursive-deletion behavior, and add live assertions across just-bash, Vercel Sandbox and Daytona adapters. The release also permits provider credentials to resolve asynchronously per request.

Who this is for

TypeScript teams building streamed generative interfaces, structured output, code workspaces and sandboxed agents with AI SDK

Original sources

Revisions & corrections (1)

— Publish a verified official patch that directly affects streamed generative-interface state and adds bounded experimental sandbox filesystem operations, with untested credential paths preserved as a limitation.

Related events

Frameworks

assistant-ui's October 28 release tightens prompt review, tool-result ownership and configuration writes

assistant-ui released a coordinated package set on October 28. Generative Frame 0.0.9 fills the composer with widget and MCP App prompts for review before sending; assistant-stream 0.3.55 fixes stale model content surviving a later tool response and pending results moving when tool-call IDs are reused; the CLI also narrows configuration paths and plan-revision boundaries.

Frameworks

AI SDK 7.0.155 removes runtime checks already guaranteed by static types

Released October 27, AI SDK 7.0.155 stops revalidating message history against the ModelMessage schema in text and object generation and removes several shape checks covered by TypeScript, reducing a linear cost in long conversations and multi-step runs.