{"schemaVersion":"2026-07-21.signal.v2","id":"live-2bd95488d308895b45de","title":"ai@7.0.158","slug":"vercel-ai-ai-7-0-158-ai-7-0-158-5b45de","url":"https://www.niubiagent.com/signals/vercel-ai-ai-7-0-158-ai-7-0-158-5b45de","jsonUrl":"https://www.niubiagent.com/api/posts/vercel-ai-ai-7-0-158-ai-7-0-158-5b45de.json","markdownUrl":"https://www.niubiagent.com/content/vercel-ai-ai-7-0-158-ai-7-0-158-5b45de","summaryHuman":"Vercel AI SDK 7.0.158 fixes a partial JSON repair issue and expands Experimental SandboxSession with new filesystem operations and standardized path resolution.","summaryAgent":"ai@7.0.158 fixes a JSON repair edge case with trailing minus signs in arrays, introduces stat, listDirectory, and deleteFile to Experimental SandboxSession, standardizes relative path resolution against the sandbox working directory for just-bash and Vercel Sandbox adapters, and prevents just-bash from overwriting directories on write.","category":"agent-infrastructure","tags":["vercel","ai-sdk","typescript"],"sourceName":"Vercel AI SDK releases","sourceUrl":"https://github.com/vercel/ai/releases/tag/ai%407.0.158","publishedAt":"2026-10-30T15:39:40Z","curatedAt":"2026-10-30T16:17:49.794Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-10-30T16:17:49.794Z","changeType":"release","actionItems":["Upgrade ai to 7.0.158 alongside updated core packages (@ai-sdk/gateway@4.0.131, @ai-sdk/provider-utils@5.0.72, @ai-sdk/provider@4.0.35).","Review implementations using Experimental SandboxSession to adopt the new stat, listDirectory, and deleteFile methods if needed.","Verify relative file path usage in sandbox runs and spawns to ensure compatibility with standardized working directory resolution.","Ensure workflows using the just-bash adapter do not attempt to write directly to directory paths, as this will now be rejected."],"body":"Vercel AI SDK version 7.0.158 delivers patch changes across core functionality and the experimental sandbox environment. First, it addresses a JSON parsing bug by ensuring partial JSON ending with a minus sign at the beginning of an array is correctly repaired. Second, it adds stat , listDirectory , and deleteFile methods to Experimental SandboxSession . The just-bash and Vercel Sandbox adapters implement these additions. Furthermore, relative paths across all sandbox methods, including workingDirectory for run and spawn , now resolve against the initial directory where execution starts. The just-bash adapter also updates write validation to reject writes targeting existing directories instead of replacing them with files. Dependency updates include @ai-sdk/gateway@4.0.131, @ai-sdk/provider-utils@5.0.72, and @ai-sdk/provider@4.0.35.","sponsors":[]}